Changed K's bedtime script to new if-then feature
This commit is contained in:
@ -336,17 +336,15 @@
|
||||
entity_id: binary_sensor.people_present
|
||||
state: 'on'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- if:
|
||||
- condition: trigger
|
||||
id: kallen-night
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
then:
|
||||
- if:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.pirateweather_temperature
|
||||
below: '40'
|
||||
sequence:
|
||||
then:
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
who: kallen_bedroom
|
||||
@ -365,24 +363,27 @@
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||
default:
|
||||
else:
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
who: kallen_bedroom
|
||||
message: Fan on. Stay cool!
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.3
|
||||
target:
|
||||
entity_id: media_player.kallen_bedroom_speaker
|
||||
- service: fan.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: fan.kallen_fan_socket_1
|
||||
- conditions:
|
||||
- if:
|
||||
- condition: trigger
|
||||
id: kallen-morning
|
||||
sequence:
|
||||
then:
|
||||
- service: fan.turn_off
|
||||
data: {}
|
||||
target:
|
||||
@ -391,7 +392,6 @@
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||
default: []
|
||||
mode: single
|
||||
- id: '1650918265367'
|
||||
alias: Speedtest Schedule
|
||||
|
Reference in New Issue
Block a user