-
Notifications
You must be signed in to change notification settings - Fork 96
HVAC action detection not updated correctly when thermostat supports both heating and cooling #200
Description
Hi,
I noticed an issue with the HVAC action detection logic in the MyHOME integration.
Problem
When the climate mode is set (e.g. heat, cool, auto), but the device does not explicitly report the HVAC action, the integration does not infer the correct action.
As a result, Home Assistant shows hvac_action: idle even when the system is actually heating or cooling.
How to reproduce
- Set the climate mode to heat or cool
- Use a device that does not provide an explicit action state like LN4691 standalone
- Observe that hvac_action remains idle even when the system is active
Proposed fix
I implemented a small change that infers the HVAC action based on the current mode when the device does not provide an explicit action.
This improves the accuracy of the climate entity and aligns it with Home Assistant’s expected behavior.
Patch
You can find the exact commit here:
And I tagged it for clarity:
👉 fix-hvac-action-detection
Result
After applying this patch, the HVAC action is correctly detected and displayed in Home Assistant.
If you think this approach is acceptable, I can open a PR or adjust the patch as needed.
Thanks for your work on this great integration!