Skip to content

Commit

Permalink
[ICP-14023] Everspring Radiator Thermostat - additional battery poll …
Browse files Browse the repository at this point in the history
…on device power up (SmartThingsCommunity#58285)

* Additional battery poll on device power up

* Added proper comment describing notification
  • Loading branch information
PKacprowiczS authored Feb 16, 2021
1 parent c680784 commit 0ebdfd7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ def zwaveEvent(physicalgraph.zwave.commands.sensormultilevelv5.SensorMultilevelR
createEvent(name: "temperature", value: convertTemperatureIfNeeded(cmd.scaledSensorValue, deviceTemperatureScale, cmd.precision), unit: temperatureScale)
}

def zwaveEvent(physicalgraph.zwave.commands.notificationv3.NotificationReport cmd) {
// Power Management - Power has been applied
if (cmd.notificationType == 0x08 && cmd.event == 0x01)
[response(zwave.batteryV1.batteryGet())]
}

def zwaveEvent(physicalgraph.zwave.Command cmd) {
log.warn "Unhandled command: ${cmd}"
[:]
Expand Down

0 comments on commit 0ebdfd7

Please sign in to comment.