Skip to content

Commit d62ec5f

Browse files
authored
Fix Tuya/Moes TRV running state _TZE204_qyr2m29i (#3985)
Fix Tuya/Moes TRV running state for `_TZE204_qyr2m29i` and `_TZE204_ltwbm23f` (Moes TRV602Z and TRV801Z).
1 parent 00f5f1e commit d62ec5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zhaquirks/tuya/tuya_trv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ async def write_attributes(
658658
dp_id=3,
659659
ep_attribute=TuyaThermostatV2.ep_attribute,
660660
attribute_name=TuyaThermostatV2.AttributeDefs.running_state.name,
661-
converter=lambda x: 0x01 if not x else 0x00, # Heat, Idle
661+
converter=lambda x: RunningState.Heat_State_On if x else RunningState.Idle,
662662
)
663663
.tuya_dp(
664664
dp_id=4,

0 commit comments

Comments
 (0)