1
0
Fork 0
ansible-home-assistant/configuration/automations/bathroom-mirror-button.yaml

49 lines
1.4 KiB
YAML
Raw Normal View History

2022-08-08 23:56:35 +02:00
- id: bathroom-mirror-lights
alias: '[Bathroom] Mirror Button Lights toggle'
2020-12-20 21:43:46 +01:00
trigger:
2022-01-30 17:37:13 +01:00
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_short_press
subtype: button_1
2020-12-20 21:43:46 +01:00
action:
- service: script.bathroom_mirror_lights_toggle
2020-12-20 21:43:46 +01:00
mode: single
2022-01-30 17:37:13 +01:00
2022-08-08 23:56:35 +02:00
- id: bathroom-mirror-button-vacuum
2022-01-30 17:37:13 +01:00
alias: '[Bathroom] Mirror Button Vacuum'
trigger:
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_short_press
subtype: button_3
action:
2022-02-05 15:43:44 +01:00
- service: vacuum.start
2022-04-23 01:38:48 +02:00
entity_id: vacuum.valetudo_valetudos5
2022-02-05 15:43:44 +01:00
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: vacuum.set_fan_speed
data:
fan_speed: Silent
target:
2022-04-23 01:38:48 +02:00
entity_id: vacuum.valetudo_valetudos5
2022-02-05 15:43:44 +01:00
2022-08-08 23:56:35 +02:00
- id: bathroom-mirror-button-automations-off
2022-01-30 17:37:13 +01:00
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