Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hvac_action for thermostats #187

Open
Macstar1601 opened this issue Jun 13, 2024 · 1 comment
Open

Add hvac_action for thermostats #187

Macstar1601 opened this issue Jun 13, 2024 · 1 comment

Comments

@Macstar1601
Copy link

It would be great if you could add the hvac_action to the thermostats so that you can see whether it is heating or cooling. Currently you can't see what the thermostat is doing.

Like this, for example:

https://github.com/albertogeniola/meross-homeassistant/blob/master/custom_components/meross_cloud/climate.py#L20

def hvac_action(self) -> Optional[str]:
if not self._device.is_on():
return HVACAction.OFF
elif self._device.is_heating:
return HVACAction.HEATING
elif self._device.mode == HVACAction.COOLING:
return HVACAction.COOLING
else:
return HVACAction.IDLE

@oliverlinsenmaier
Copy link

oliverlinsenmaier commented Aug 12, 2024

That would be really good! :)
I wasn't sure what the cause of this is, but this seems to be the problem.
On actions, there should only be "on", "off" and "eco". The mode will be normally set by the free@home system and can't be overwritten. In my system this comes from a binary sensor telling the F@H system in which mode the heat pump is operating. And I don't want to change that (there are already 2 systems involved, I don't want HA interfere with my heating right now).
BTW, this issue is also discussed here:
Current heating action for climate devices #167
Thermostats detected incorrectly with hvac_mode "heat_cool" #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants