Thermostat turn off if too cold

Trying to turn my thermostat off if its too cold outside. I can not get the condition added in of operation_mode = cool. Anyone able to help?

image

In order to have a condition based on an attribute like that, you’ll have to have a template condition. State conditions only match the state of the entity.

condition:
  - condition: template
    value_template: >
      {{ is_state_attr('climate.thermostat', 'operation_mode', 'cool') }}
1 Like

This is what I use for nest

condition:
  - condition: state
    entity_id: climate.home_hizzy
    state: 'cool'
1 Like

Its not the actual state. Its the condition_mode needing called.

This did work but now it doesnt work. Not sure if HA related.

Ok so this works, but it only works once then I have to restart automations or restart HA. Confused on what would be hanging?

Logs show nothing useful.

image

“initial_mode” is not set, so make sure that the automation is turned on in the states page.

If you can trigger the automation through the services page, then that rules out the action section. Is your darksky sensor entity_id correct?

I can trigger the automation correct. The darksky temp is fine. Not sure how to set initial_mode.

Researching.

You can turn on (enable) the thermostat via the states page, the recorder will keep track of the state. The initial_state (sorry, my bad) isn’t a requirement, it will make sure it is on or off when homeassistant starts.

well initial_state was turned on manually. I do show the automation has on.

image