Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blueprint:
- name: Smart Thermostat
- description: 'Based on wind direction thermostat is set to max'
- domain: automation
- input:
- weather:
- name: Weather
- description: Specify your weather sensor to get the current outside wind direction from.
- selector:
- entity:
- domain: sensor
- thermostat:
- name: Thermostat
- description: Specify your thermostat.
- selector:
- entity:
- domain: climate
- wind1:
- name: wind1
- description: "The ouside wind direction needs to be between this and the next"
- default: 123.75
- selector:
- number:
- step: 1
- min: 0
- max: 360
- unit_of_measurement: °
- wind2:
- name: wind2
- default: 236.25
- selector:
- number:
- step: 1
- min: 0
- max: 360
- unit_of_measurement: °
- temp_to_set:
- name: Temperature
- default: 23
- selector:
- number:
- min: 5
- max: 30
- unit_of_measurement: °
- notify_device:
- name: Device
- description: The device must run the official Home Assistant app to receive notifications.
- default: false
- selector:
- device:
- integration: mobile_app
- trigger:
- platform: numeric_state
- entity_id: !input weather
- above: !input wind1
- below: !input wind2
- action:
- - service: climate.set_temperature
- data_template:
- entity_id: !input thermostat
- temperature: !input temp_to_set
- - domain: mobile_app
- type: notify
- device_id: !input notify_device
- message: "Termostat sat til {{ temperature }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement