Hello,
We need an automation rule that checks the HVAC mode using an “if” condition.
The rule should run every hour, but only if climate.heatpump is set to hvac_modes: heat.
How can this be implemented? Only via YAML?
Best regards,
Andreas
Hello,
We need an automation rule that checks the HVAC mode using an “if” condition.
The rule should run every hour, but only if climate.heatpump is set to hvac_modes: heat.
How can this be implemented? Only via YAML?
Best regards,
Andreas
Strict time-based triggers aren’t usually the most efficient way to automate in HA, but if that’s what you actually need, there is a trigger for that:
Can you please clarify this? The attribute hvac_modes is a list of the modes supported by the climate entity… it should not change and should never just be heat, even for a heating device the attribute should contain both heat and off. Perhaps you are confusing it with the state of the entity or the hvac_action attribute?
alias: "Thermostat is in Heat mode"
condition: state
entity_id: climate.example
state: "heat"
hvac_action attribute: alias: "Thermostat is Heating"
condition: state
entity_id: climate.example
attribute: hvac_action
state: "heating"
Only a very small portion of functions in scripts and automations are YAML-only. But, YAML is the most efficient method for us to understand, share, and offer corrections/edits to automations and scripts, which is why that is what we use most often on the forums and is shown in the docs. It can literally be copied and pasted directly into the Automation editor and the editor will converted to the GUI flow style.