Automation for K's room white noise or fan, depending on temperature
This commit is contained in:
@ -320,3 +320,65 @@
|
||||
dashboard: lovelace
|
||||
player: media_player.basement_tv_chromecast
|
||||
view: chromecast
|
||||
- id: '1650223622885'
|
||||
alias: Kallen's Sleep Time
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
id: kallen-night
|
||||
at: input_datetime.kallen_bedtime
|
||||
- platform: time
|
||||
id: kallen-morning
|
||||
at: input_datetime.kallen_wakeup_time
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.people_present
|
||||
state: 'on'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: kallen-night
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.pirateweather_temperature
|
||||
below: '40'
|
||||
sequence:
|
||||
- service: tts.google_say
|
||||
data:
|
||||
entity_id: media_player.kallen_bedroom_speaker
|
||||
message: No fan tonight, too cold outside! Brrrr!
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- service: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||
default:
|
||||
- service: tts.google_say
|
||||
data:
|
||||
entity_id: media_player.kallen_bedroom_speaker
|
||||
message: Fan on. Stay cool!
|
||||
- service: fan.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: fan.kallen_fan_socket_1
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: kallen-morning
|
||||
sequence:
|
||||
- service: fan.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: fan.kallen_fan_socket_1
|
||||
- service: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||
default: []
|
||||
mode: single
|
||||
|
@ -20,3 +20,11 @@ good_night_routine:
|
||||
name: Good Night Routine
|
||||
has_date: false
|
||||
has_time: true
|
||||
kallen_bedtime:
|
||||
name: Kallen Bedtime
|
||||
has_date: false
|
||||
has_time: true
|
||||
kallen_wakeup_time:
|
||||
name: Kallen Wake-up Time
|
||||
has_date: false
|
||||
has_time: true
|
Reference in New Issue
Block a user