mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Setting up Emmetts Room
This commit is contained in:
@@ -5,7 +5,7 @@ mode: restart
|
||||
|
||||
trigger:
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
to: "on"
|
||||
for: "00:10:00"
|
||||
- trigger: state
|
||||
@@ -22,17 +22,12 @@ condition:
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.white_bed_occupied
|
||||
- binary_sensor.black_bed_occupied
|
||||
state: "on"
|
||||
for: "00:10:00"
|
||||
for: "00:05:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: "off"
|
||||
#- condition: state
|
||||
# entity_id: binary_sensor.white_bed_occupied
|
||||
# state: 'on'
|
||||
# for:
|
||||
# minutes: 5
|
||||
|
||||
action:
|
||||
- action: homeassistant.turn_on
|
||||
|
||||
@@ -4,7 +4,7 @@ mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: 'on'
|
||||
for: '00:10:00'
|
||||
- platform: state
|
||||
@@ -21,7 +21,7 @@ condition:
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.black_bed_occupied
|
||||
- binary_sensor.white_bed_occupied
|
||||
state: 'on'
|
||||
for: '00:10:00'
|
||||
- condition: state
|
||||
|
||||
@@ -9,7 +9,7 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- group.person_kristy
|
||||
- device_tracker.kristy_s_phone
|
||||
- device_tracker.nmap_tracker_d6_28_7a_58_b8_da
|
||||
to: 'home'
|
||||
|
||||
- platform: event
|
||||
|
||||
@@ -151,28 +151,52 @@ action:
|
||||
- delay: "00:05:00"
|
||||
|
||||
- choose:
|
||||
- conditions: "{{is_state('input_boolean.emmett_home','on') or is_state('input_boolean.bridget_home','on')}}"
|
||||
- conditions: "{{is_state('input_boolean.bridget_home','on')}}"
|
||||
sequence:
|
||||
- service: input_button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_button.nursery_bedtime
|
||||
|
||||
- delay: "00:45:00"
|
||||
- service: input_select.select_option
|
||||
data:
|
||||
option: Running Rainbow
|
||||
target:
|
||||
entity_id: input_select.nursery_wled
|
||||
|
||||
# - service: automation.trigger
|
||||
# target:
|
||||
# entity_id: automation.nursery_wled_changed
|
||||
|
||||
# - choose:
|
||||
# - conditions: "{{is_state('input_boolean.bridget_home','on')}}"
|
||||
# sequence:
|
||||
# - service: input_boolean.turn_on
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id: input_boolean.nursery_asleep
|
||||
|
||||
# - delay: "00:00:05"
|
||||
|
||||
# - choose:
|
||||
# - conditions: "{{is_state('media_player.ytube_music_player','on')}}"
|
||||
# sequence:
|
||||
# - service: media_player.turn_off
|
||||
# target:
|
||||
# entity_id: media_player.ytube_music_player
|
||||
|
||||
- delay: "00:25:00"
|
||||
|
||||
- choose:
|
||||
- conditions: "{{is_state('input_boolean.emmett_home','on') or is_state('input_boolean.bridget_home','on')}}"
|
||||
- conditions: "{{is_state('input_boolean.emmett_home','on')}}"
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.nursery_asleep
|
||||
entity_id: input_boolean.blue_room_asleep
|
||||
|
||||
- delay: "00:00:05"
|
||||
|
||||
- choose:
|
||||
- conditions: "{{is_state('media_player.ytube_music_player','on')}}"
|
||||
sequence:
|
||||
- service: media_player.turn_off
|
||||
- service: input_select.select_option
|
||||
target:
|
||||
entity_id: media_player.ytube_music_player
|
||||
entity_id: input_select.blue_room_mode
|
||||
data:
|
||||
option: "Nightlight"
|
||||
Reference in New Issue
Block a user