Turning down heating

My Mrs has a tendency to turn the heating up so much that my house is like a sauna when I am not at home :slight_smile:

I have written this automation with some templates, which will check the temperature of the house with a condition that the heating system is also above 21C (so that it wont run simply on a hot day). Does this look correct as I am not sure this is right? Thanks

alias: Hive turn high temperature down 
trigger:
  - platform: numeric_state
    entity_id: climate.heating
    value_template: '{{ state.attributes.current_temperature }}'
    above: 22
    for:
      hours: 0
      minutes: 15
      seconds: 0
condition:
  condition: template
  value_template: '{{ states.climate.heating.attributes.temperature > 21 }}'
action:
  - service: climate.set_temperature
    entity_id: climate.heating
    data_template:
      temperature: 21
  - service: notify.telegram
    data:
      message: 'Hive temp too high, setting back to 21C'
alias: Hive turn high temperature down 
trigger:
  - platform: numeric_state
    entity_id: climate.heating
    value_template: '{{ state.attributes.current_temperature }}'
    above: 22
    for:
      hours: 0
      minutes: 15
      seconds: 0
action:
  - service: climate.set_temperature
    entity_id: climate.heating
    data_template:
      temperature: 21
  - service: notify.telegram
    data:
      message: 'Hive temp too high, setting back to 21C'

that should be all you need. Don’t need the condition because your temperature will always be above 22 because of your trigger.

1 Like

Condition is there for a hot day. I don’t want the actions running just because the house is warm on a summers day. This condition checks the thermostat temperature.

Didn’t notice it wasn’t current_temperature.

Looks good then.

Are you sure you really want to do this?
If I set up an automation that would take over control of the temperature in the house and invalidate her explicit button pushes on the thermostat terminal this would constitute GfD (Grounds for Divorce) :wink:

1 Like