Moved K's bedroom automations to Node-RED
This commit is contained in:
@ -248,96 +248,6 @@
|
||||
dashboard: lovelace
|
||||
player: media_player.basement_tv_chromecast
|
||||
view: chromecast
|
||||
- id: '1650223622885'
|
||||
alias: Kallen Bedtime Protocol
|
||||
description: Activates fan or white noise at bedtime depending on temperature (turning
|
||||
down speaker volume as well) and then shuts them off in the morning.
|
||||
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'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kallen_overnight
|
||||
state: 'off'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: kallen-night
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.pirateweather_temperature
|
||||
below: '40'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data: {}
|
||||
target:
|
||||
area_id:
|
||||
- kallen_bedroom
|
||||
- upstairs_bathroom
|
||||
- upstairs_hallway
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
who: kallen_bedroom
|
||||
message: No fan tonight, too cold outside! Brrrr!
|
||||
- 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: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||
default:
|
||||
- service: light.turn_on
|
||||
data: {}
|
||||
target:
|
||||
area_id:
|
||||
- kallen_bedroom
|
||||
- upstairs_bathroom
|
||||
- upstairs_hallway
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
who: kallen_bedroom
|
||||
message: Fan on. Stay cool!
|
||||
- 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:
|
||||
- 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: queued
|
||||
- id: '1651785688186'
|
||||
alias: Watchman Audit on Startup
|
||||
description: Runs the Watchman Audit script after Home Assistant has successfully
|
||||
|
Reference in New Issue
Block a user