Skip to content

HVAC action detection not updated correctly when thermostat supports both heating and cooling #200

@giannicoderani

Description

@giannicoderani

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

  1. Set the climate mode to heat or cool
  2. Use a device that does not provide an explicit action state like LN4691 standalone
  3. 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:

👉 giannicoderani@ca90b5e

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions