Skip to content

Commit ab0d248

Browse files
authored
Fix Sinope custom attribute values (#2963)
* Fix wrong definition for attribute values * Add Partial_lock value for keypadLock * Add battery_type attribute * Add Partial_lock and Bedroom attributes values
1 parent 1f29b72 commit ab0d248

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

zhaquirks/sinope/sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class SinopeManufacturerCluster(CustomCluster):
4242
0x0032: ("min_temperature_limit", t.int16s, True),
4343
0x0033: ("max_temperature_limit", t.int16s, True),
4444
0x0034: ("device_status", t.bitmap8, True),
45+
0x0036: ("battery_type", t.uint16_t, True),
4546
0x0200: ("status", t.bitmap32, True),
4647
0xFFFD: ("cluster_revision", t.uint16_t, True),
4748
}

zhaquirks/sinope/switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class KeypadLock(t.enum8):
5555

5656
Unlocked = 0x00
5757
Locked = 0x01
58+
Partial_lock = 0x02
5859

5960
class FlowAlarm(t.enum8):
6061
"""Abnormal flow alarm."""

zhaquirks/sinope/thermostat.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class KeypadLock(t.enum8):
4141

4242
Unlocked = 0x00
4343
Locked = 0x01
44+
Partial_lock = 0x02
4445

4546
class Display(t.enum8):
4647
"""config_2nd_display values."""
@@ -157,14 +158,15 @@ class SinopeTechnologiesThermostatCluster(CustomCluster, Thermostat):
157158
class Occupancy(t.enum8):
158159
"""set_occupancy values."""
159160

160-
Home = 0x00
161-
Away = 0x01
161+
Away = 0x00
162+
Home = 0x01
162163

163164
class Backlight(t.enum8):
164165
"""backlight_auto_dim_param values."""
165166

166167
On_demand = 0x00
167168
Always_on = 0x01
169+
Bedroom = 0x02
168170

169171
class CycleOutput(t.uint16_t):
170172
"""main and aux cycle period values."""

0 commit comments

Comments
 (0)