1
0

Add thermostat for automations

This commit is contained in:
Przemek Grondek 2022-11-24 02:00:17 +01:00
parent c4af23296e
commit 3e6b6b441e
2 changed files with 56 additions and 2 deletions

View File

@ -1,5 +1,5 @@
- id: sleep_on - id: sleep_on
alias: '[Mode] Turn on sleep time' alias: '[Mode] Turn on sleep mode'
trigger: trigger:
- platform: time - platform: time
at: input_datetime.sleep_mode at: input_datetime.sleep_mode
@ -20,7 +20,7 @@
mode: single mode: single
- id: sleep_off - id: sleep_off
alias: '[Mode] Turn off sleep time' alias: '[Mode] Turn off sleep mode'
trigger: trigger:
- platform: time - platform: time
at: input_datetime.day_mode at: input_datetime.day_mode
@ -28,3 +28,21 @@
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.sleep_mode entity_id: input_boolean.sleep_mode
mode: single mode: single
- id: sleep_temperature
alias: '[Sleep] Set temperature in bedroom'
trigger:
- platform: state
entity_id:
- input_boolean.sleep_mode
to: 'on'
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action:
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id: climate.bedroom_thermostat

View File

@ -64,6 +64,13 @@ good_night:
data: data:
addon: core_samba addon: core_samba
- service: script.tv_off - service: script.tv_off
- service: climate.set_temperature
data:
temperature: 20
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
mode: single mode: single
icon: mdi:weather-night icon: mdi:weather-night
@ -88,6 +95,19 @@ good_morning:
- service: switch.turn_on - service: switch.turn_on
target: target:
entity_id: switch.coffee_machine_on_off entity_id: switch.coffee_machine_on_off
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
- service: climate.set_temperature
data:
temperature: 21
target:
entity_id:
- climate.bedroom_thermostat
mode: single mode: single
icon: mdi:weather-sunny icon: mdi:weather-sunny
@ -144,6 +164,14 @@ leave_home:
target: target:
entity_id: climate.ac entity_id: climate.ac
- service: script.vacuum_today - service: script.vacuum_today
- service: climate.set_temperature
data:
temperature: 21
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
- climate.bedroom_thermostat
mode: single mode: single
icon: mdi:home-export-outline icon: mdi:home-export-outline
@ -164,5 +192,13 @@ arrive_home:
- switch.kitchen_state - switch.kitchen_state
- switch.hallway_state - switch.hallway_state
- switch.kitchen_camera_outlet_on_off - switch.kitchen_camera_outlet_on_off
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
- climate.bedroom_thermostat
mode: single mode: single
icon: mdi:home-import-outline icon: mdi:home-import-outline