64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
- id: bathroom-mirror-lights-on
|
|
alias: '[Bathroom] Mirror Button Music'
|
|
trigger:
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_short_press
|
|
subtype: button_2
|
|
action:
|
|
- service: media_player.media_play_pause
|
|
target:
|
|
entity_id: media_player.bathroom
|
|
mode: single
|
|
|
|
- id: bathroom-mirror-lights-off
|
|
alias: '[Bathroom] Mirror Button Lights toggle'
|
|
trigger:
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_short_press
|
|
subtype: button_1
|
|
action:
|
|
- service: script.bathroom_mirror_lights_toggle
|
|
mode: single
|
|
|
|
- id: bathroom-mirror-button-3
|
|
alias: '[Bathroom] Mirror Button Vacuum'
|
|
trigger:
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_short_press
|
|
subtype: button_3
|
|
action:
|
|
- service: vacuum.start
|
|
entity_id: vacuum.robot_vacuum
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'on'
|
|
sequence:
|
|
- service: vacuum.set_fan_speed
|
|
data:
|
|
fan_speed: Silent
|
|
target:
|
|
entity_id: vacuum.robot_vacuum
|
|
|
|
|
|
- id: bathroom-mirror-button-4
|
|
alias: '[Bathroom] Mirror Button Automations'
|
|
trigger:
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_short_press
|
|
subtype: button_3
|
|
action:
|
|
- service: automation.turn_off
|
|
target:
|
|
entity_id:
|
|
- automation.bathroom_shower_motion_off
|
|
- automation.bathroom_lights_off |