FeatureFuel
0

Tuya climate: implement hvac_action for switch-only devices using work_state DPCode

Source: home-assistant/core#181941 · opened by @kasitoru
The problem The Tuya climate integration never sets the hvac_action attribute of a climate entity. As a result, the state shown in the UI is always Unknown, even though the physical device reports whether it is currently heating / cooling / idle. Example — a Tuya water heater (category rs, productKey: w3jiqmxyzuvj5nir): • current_temperature — correctly shown • target_temperature — correctly shown • hvac_modes — correctly shows off / heat • hvac_action — Unknown Attributes as shown in HA Developer Tools: No hvac_action key is present, which means ClimateEntity.hvac_action falls back to its base implementation returning None. Root cause In homeassistant/components/tuya/climate.py, TuyaClimateEntity reads wrappers from ClimateDefinition but never reads an "action" wrapper, and does not override hvac_action. The upstream definition library tuya-device-handlers (all versions, including main) does not expose a wrapper for the work_state DPCode via …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests