1
0
ansible-home-assistant/scripts/92.lights-bathroom.yaml

179 lines
5.6 KiB
YAML
Raw Normal View History

bathroom_lights_toggle:
alias: '[Bathroom] Lights toggle'
sequence:
- choose:
- conditions:
- condition: state
entity_id: light.bathroom_lights
state: 'on'
sequence:
- service: script.bathroom_lights_off
- conditions:
- condition: state
entity_id: light.bathroom_lights
state: 'off'
sequence:
- service: script.bathroom_lights_on
bathroom_lights_on:
alias: '[Bathroom] Lights on'
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Day
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness: 255
- service: light.turn_on
entity_id: light.bathroom_lights
data:
kelvin: 2000
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
kelvin: 3200
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness: 255
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Night
sequence:
- service: light.turn_on
entity_id: light.bathroom_color_zha_group_0x0007
data:
2022-08-04 22:19:04 +00:00
brightness_pct: 50
hs_color:
- 360
- 100
bathroom_lights_off:
alias: '[Bathroom] Lights off'
sequence:
- service: light.turn_off
entity_id: light.bathroom_lights
- service: light.turn_off
entity_id: light.bathroom_mirror_lights
- service: light.turn_off
entity_id: light.shower_lights
- service: light.turn_off
entity_id: light.bathroom_color_zha_group_0x0007
- service: media_player.media_pause
2022-01-10 22:54:53 +00:00
entity_id: media_player.bathroom
bathroom_mirror_lights_toggle:
alias: '[Bathroom] Mirror lights toggle'
sequence:
- choose:
- conditions:
- condition: state
entity_id: light.bathroom_mirror_lights
state: 'on'
sequence:
- service: script.bathroom_mirror_lights_off
- conditions:
- condition: state
entity_id: light.bathroom_mirror_lights
state: 'off'
sequence:
- service: script.bathroom_mirror_lights_on
bathroom_mirror_lights_on:
alias: '[Bathroom] Mirror lights on'
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Day
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.bathroom_mirror_lights
data:
kelvin: 2000
- service: light.turn_on
entity_id: light.bathroom_mirror_lights
data:
brightness: 255
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.bathroom_mirror_lights
data:
kelvin: 3200
- service: light.turn_on
entity_id: light.bathroom_mirror_lights
data:
brightness: 255
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Night
sequence:
- service: light.turn_on
entity_id: light.bathroom_mirror_lights
data:
brightness: 25
bathroom_mirror_lights_off:
alias: '[Bathroom] Mirror lights off'
sequence:
- service: light.turn_off
entity_id: light.bathroom_mirror_lights
bathroom_shower_lights_on:
alias: '[Bathroom] Shower lights on'
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.shower_lights
data:
brightness_pct: 100
kelvin: 2000
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.shower_lights
data:
brightness_pct: 100
kelvin: 3200
bathroom_shower_lights_off:
alias: '[Bathroom] Shower lights off'
sequence:
- service: light.turn_off
entity_id: light.shower_lights