Skip to content

Instantly share code, notes, and snippets.

@quallenbezwinger
Last active January 15, 2022 16:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save quallenbezwinger/d3a60a5ebc7c58b1c56024cb447bef3c to your computer and use it in GitHub Desktop.
Save quallenbezwinger/d3a60a5ebc7c58b1c56024cb447bef3c to your computer and use it in GitHub Desktop.
Set thermostat temperature at specific time - homeassistant blueprint
blueprint:
name: Set thermostat temperature at specific time
description: Sets a climate entity to a specifc temperature at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode.
domain: automation
source_url: https://gist.github.com/dirkk1980/d3a60a5ebc7c58b1c56024cb447bef3c
input:
time_to_set:
name: Time
description: When should the temperature be set
selector:
time:
climate_entity:
name: Thermostat
description: Climate entity which will get the temperature update
selector:
entity:
domain: climate
temp_to_set:
name: Temperature
description: Temperature to set on defined time
default: 19.5
selector:
number:
min: 10
max: 30
unit_of_measurement: degrees
step: 0.5
trigger:
- platform: time
at: !input time_to_set
mode: queued
action:
- choose:
- conditions:
- condition: state
entity_id: !input climate_entity
state: "heat"
sequence:
- service: climate.set_temperature
entity_id: !input climate_entity
data:
temperature: !input temp_to_set
- conditions:
- condition: state
entity_id: !input climate_entity
state: "off"
sequence:
- wait_for_trigger:
platform: state
entity_id: !input climate_entity
from: "off"
to: "heat"
#delay is necessary to prevents an override by other functions like window/doors sensor control which are restoring the prevoius temperature
- delay: 10
- service: climate.set_temperature
entity_id: !input climate_entity
data:
temperature: !input temp_to_set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment