Reverted the changes to K's bedtime script due to fan not turning on

This commit is contained in:
2022-05-07 14:19:28 -04:00
parent 970f6351d4
commit 23ca4ccba4

View File

@ -336,62 +336,62 @@
entity_id: binary_sensor.people_present entity_id: binary_sensor.people_present
state: 'on' state: 'on'
action: action:
- if: - choose:
- condition: trigger - conditions:
id: kallen-night - condition: trigger
then: id: kallen-night
- if: sequence:
- condition: numeric_state - choose:
entity_id: sensor.pirateweather_temperature - conditions:
below: '40' - condition: numeric_state
then: entity_id: sensor.pirateweather_temperature
- service: script.speech_engine below: '40'
data: sequence:
who: kallen_bedroom - service: script.speech_engine
message: No fan tonight, too cold outside! Brrrr! data:
- delay: who: kallen_bedroom
hours: 0 message: No fan tonight, too cold outside! Brrrr!
minutes: 0 - delay:
seconds: 5 hours: 0
milliseconds: 0 minutes: 0
- service: media_player.volume_set seconds: 5
data: milliseconds: 0
volume_level: 0.3 - service: media_player.volume_set
target: data:
entity_id: media_player.kallen_bedroom_speaker volume_level: 0.3
- service: input_boolean.turn_on target:
data: {} entity_id: media_player.kallen_bedroom_speaker
target: - service: input_boolean.turn_on
entity_id: input_boolean.white_noise_kallen_bedroom data: {}
else: target:
- service: script.speech_engine entity_id: input_boolean.white_noise_kallen_bedroom
data: default:
who: kallen_bedroom - service: script.speech_engine
message: Fan on. Stay cool! data:
- delay: who: kallen_bedroom
hours: 0 message: Fan on. Stay cool!
minutes: 0 - service: media_player.volume_set
seconds: 5 data:
milliseconds: 0 volume_level: 0.3
- service: media_player.volume_set target:
data: entity_id: media_player.kallen_bedroom_speaker
volume_level: 0.3 - service: fan.turn_on
- 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: {} data: {}
target: target:
entity_id: fan.kallen_fan_socket_1 entity_id: fan.kallen_fan_socket_1
- if: - service: input_boolean.turn_off
- condition: trigger data: {}
id: kallen-morning target:
then: entity_id: input_boolean.white_noise_kallen_bedroom
- service: fan.turn_off default: []
data: {}
target:
entity_id: fan.kallen_fan_socket_1
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.white_noise_kallen_bedroom
mode: single mode: single
- id: '1650918265367' - id: '1650918265367'
alias: Speedtest Schedule alias: Speedtest Schedule