Hi all, I am attempting to create a blueprint that i can use to automate my 2 units. I have a bunch of code cobbled together from various sources, but need a push in the right direction (or someone to tell me its all fubar).
I want to be able to set the thermostat, morning time and evening time based on the blueprint and have it execute at those times based on what the daily high temperature is expected to be. i have an older uninsulated house and when its too hot or cold outside the thermostat needs to be adjusted to offset how it feels inside.
i believe the only thing i need to figure out is how to set the variables
morning_temperature_heat:
morning_temperature_cool:
evening_temperature_heat:
evening_temperature_cool:
but please let me know
blueprint:
name: Climate Thermostat Schedule
description: Set climate based on time of day and Daily high temperature
domain: automation
input:
thermostat:
name: Thermostat
description: Select the climate device to be used
selector:
entity:
domain: climate
multiple: false
morning:
name: morning_schedule
description: Time morning schedule starts
selector:
time:
evening:
name: evening_schedule
description: Time evening schedule starts
selector:
time:
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.openweathermap_forecast_temperature
below: 65
morning_temperature_heat: 73
morning_temperature_cool: 75
evening_temperature_heat: 70
evening_temperature_cool: 74
- condition:
entity_id: sensor.openweathermap_forecast_temperature
above: 65
below: 80
morning_temperature_heat: 72
morning_temperature_cool: 75
evening_temperature_heat: 67
evening_temperature_cool: 70
- condition:
entity_id: sensor.openweathermap_forecast_temperature
above: 80
below: 95
morning_temperature_heat: 65
morning_temperature_cool: 76
evening_temperature_heat: 67
evening_temperature_cool: 70
- condition:
entity_id: sensor.openweathermap_forecast_temperature
above: 95
morning_temperature_heat: 72
morning_temperature_cool: 77
evening_temperature_heat: 65
evening_temperature_cool: 69
variables:
thermostat: !input 'thermostat'
morning_temp_heat: !input 'morning_temperature_heat'
morning_temp_cool: !input 'morning_temperature_cool'
evening_temp_heat: !input 'evening_temperature_heat'
evening_temp_cool: !input 'evening_temperature_cool'
trigger:
- platform: time
at: input_evening.morning_schedule
id: morning
- platform: time
at: input_morning.evening_schedule
id: evening
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: morning
sequence:
- service: climate.set_temperature
target:
entity_id: thermostat
data:
target_temp_high: morning_temp_heat
hvac_mode: heat_cool
target_temp_low: morning_temp_cool
- conditions:
- condition: trigger
id: evening
sequence:
- service: climate.set_temperature
target:
entity_id: thermostat
data:
target_temp_high: evening_temp_heat
hvac_mode: heat_cool
target_temp_low: evening_temp_cool
default: []
mode: single