alias: Bathroom Enter (Alex Home Alone)
description: ‘’
trigger:
- platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Sunday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Monday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Tuesday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Wednesday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Thursday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Friday - platform: state
entity_id: binary_sensor.presence_5
to: ‘on’
id: Saturday - platform: state
entity_id: binary_sensor.presence_5
id: Evening Trigger
to: ‘on’ - platform: state
entity_id: binary_sensor.presence_5
id: Late Trigger
to: ‘on’
condition: - condition: and
conditions:- condition: not
conditions:- condition: state
entity_id: media_player.bathroom_echo
state: playing - condition: state
entity_id: person.cori
state: home - condition: state
entity_id: input_boolean.guest_mode
state: ‘on’
- condition: state
- condition: state
entity_id: person.alex
state: home
action:
- condition: not
- choose:
- conditions:
- condition: and
conditions:- condition: trigger
id: Sunday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- sun
sequence:
- sun
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_type: amazon_music
media_content_id: dababy - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Monday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- mon
sequence:
- mon
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_id: asap rocky
media_content_type: amazon_music - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Tuesday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- tue
sequence:
- tue
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
data:
media_content_id: lil wayne
media_content_type: amazon_music - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Wednesday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- wed
sequence:
- wed
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_type: amazon_music
media_content_id: soja - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Thursday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- thu
sequence:
- thu
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_type: amazon_music
media_content_id: led zeppelin - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Friday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- fri
sequence:
- fri
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_id: boogie wit da hoodie
media_content_type: amazon_music - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Saturday - condition: time
after: ‘06:00:00’
before: ‘18:00:00’
weekday:- sat
sequence:
- sat
- condition: trigger
- service: light.turn_on
target:
entity_id:
- light.bathroom_lights
- light.bathroom_dome_light
data:
brightness_pct: 100 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.35 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_type: amazon_music
media_content_id: kings of leon - service: input_boolean.turn_off
target:
entity_id: input_boolean.sunsa_blinds
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Evening Trigger - condition: time
after: ‘18:01:00’
before: ‘22:00:00’
sequence:
- condition: trigger
- service: light.turn_on
target:
entity_id: light.bathroom_lights
data:
brightness_pct: 40 - service: media_player.volume_set
target:
entity_id: media_player.bathroom_echo
data:
volume_level: 0.25 - service: media_player.play_media
target:
entity_id: media_player.bathroom_echo
data:
media_content_id: Christmas music
media_content_type: amazon_music
- condition: and
- conditions:
- condition: and
conditions:- condition: trigger
id: Late Trigger - condition: time
after: ‘22:01:00’
before: ‘05:59:00’
sequence:
- condition: trigger
- service: light.turn_on
target:
entity_id: light.bathroom_lights
data:
brightness_pct: 2
default: []
mode: single
- condition: and
- conditions: