Skip to content

Commit

Permalink
feat: Support battery for TRVZB (#6146)
Browse files Browse the repository at this point in the history
* add sonoff new device SNZB-06P Zigbee occupancy sensor and TRVZB zigbee thermostat

* Update sonoff.ts

* Update sonoff.ts

* Update sonoff.ts

* Update sonoff.ts

* add battery to TRVZB

* Update sonoff.ts

---------

Co-authored-by: liangjia <“jia.liang@itead.cc”>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent 57bd2c7 commit 3f33a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/sonoff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ const definitions: Definition[] = [
.withSetpoint('occupied_heating_setpoint', 4, 35, 0.5)
.withLocalTemperature()
.withSystemMode(['off', 'auto', 'heat'], ea.ALL, 'Mode of the thermostat')
.withRunningState(['idle', 'heat'], ea.STATE_GET)],
fromZigbee: [fz.thermostat],
.withRunningState(['idle', 'heat'], ea.STATE_GET), e.battery(), e.battery_low()],
fromZigbee: [fz.thermostat, fz.battery],
toZigbee: [
tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration, tz.thermostat_occupied_heating_setpoint,
tz.thermostat_system_mode, tz.thermostat_running_state],
Expand Down

0 comments on commit 3f33a87

Please sign in to comment.