Forked from quallenbezwinger/set_climate_on_time.yaml
Last active
January 31, 2021 21:14
-
-
Save elightbo/8a7579e7926d00c1e30c15384b46347f to your computer and use it in GitHub Desktop.
Set thermostat temperature at specific time - homeassistant blueprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 69 | |
selector: | |
number: | |
min: 50 | |
max: 90 | |
unit_of_measurement: '°F' | |
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