Skip to content

[Bug] _TZE204_ltwbm23f temperature calibration quirk misses multiplier #4620

@GWRon

Description

@GWRon

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",
    )
#...
)

(

)

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions