-
Notifications
You must be signed in to change notification settings - Fork 960
Open
Description
Heya,
in PR #3769 support for _TZE204_qyr2m29i and _TZE204_ltwbm23f was added.
But using the quirk and trying to configure the temperature calibration a "+1" leads to a "+0.1" change. In other words, the multiplier is missing.
I only own the latter (_TZE204_ltwbm23f), so I won't come up with a PR for this (I can only verify it works on my machine).
Only change is to add multiplier=0.1,` to the corresponding tuya-number.
# Moes TRV602Z and TRV801Z
(
TuyaQuirkBuilder("_TZE204_qyr2m29i", "TS0601")
.applies_to("_TZE204_ltwbm23f", "TS0601")
.tuya_dp(
dp_id=3,
ep_attribute=TuyaThermostatV2.ep_attribute,
attribute_name=TuyaThermostatV2.AttributeDefs.running_state.name,
converter=lambda x: RunningState.Heat_State_On if x else RunningState.Idle,
)
#...
.tuya_number(
dp_id=47,
attribute_name=TuyaThermostatV2NoSchedule.AttributeDefs.local_temperature_calibration.name,
type=t.int32s,
min_value=-6,
max_value=6,
unit=UnitOfTemperature.CELSIUS,
step=1,
multiplier=0.1, # <----- HERE
translation_key="local_temperature_calibration",
fallback_name="Local temperature calibration",
)
#...
)(
| .tuya_number( |
Other tuya_numbers/DPs for these devices care for this already, so I think it was simply missed in the PR but as said ... only owning one device and not the other.
Metadata
Metadata
Assignees
Labels
No labels