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

71 lines
1.7 KiB
YAML
Raw Normal View History

2020-12-20 20:43:46 +00:00
- id: button-bathroom-on
alias: Button On computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: light.turn_on
2020-12-20 20:43:46 +00:00
data:
entity_id:
- light.mirror_left
- light.mirror_middle
- light.mirror_right
2020-12-20 20:43:46 +00:00
mode: single
- id: button-bathroom-off
alias: Button Off computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
condition: []
action:
- service: light.turn_off
2020-12-20 20:43:46 +00:00
data:
entity_id:
- light.mirror_left
- light.mirror_middle
- light.mirror_right
2020-12-20 20:43:46 +00:00
mode: single
#- id: button-bathroom-hold-on
# alias: Button Hold On computer cave
# trigger:
# - platform: event
# event_type: zha_event
# event_data:
# device_id: 4d5298037e93ba11438409bff01b5005
# command: move_with_on_off
# condition: []
# action:
# - service: light.turn_on
2020-12-20 20:43:46 +00:00
# data:
# entity_id:
# - light.tv_left
# - light.tv_middle
# - light.tv_right
# mode: single
#- id: button-bathroom-hold-off
# alias: Button Hold Off computer cave
# trigger:
# - platform: event
# event_type: zha_event
# event_data:
# device_id: 4d5298037e93ba11438409bff01b5005
# command: move
# args:
# - 1
# - 83
# condition: []
# action:
# - service: light.turn_off
# data:
# entity_id:
# - light.tv_left
# - light.tv_middle
# - light.tv_right
# mode: single