1
0
ansible-home-assistant/configuration/automations/kitchen-button.yaml

154 lines
3.6 KiB
YAML
Raw Normal View History

2021-04-17 10:35:32 +00:00
# Kitchen button
2021-05-24 22:16:35 +00:00
- id: kitchen-button-1 # Upper Left
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 1'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_short_press
subtype: button_1
action:
- service: light.turn_on
target:
entity_id: light.kitchen_lights
2021-05-10 10:24:31 +00:00
- id: kitchen-button-2 # Upper right
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 2'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_short_press
subtype: button_2
action:
- service: light.turn_on
target:
entity_id: light.hallway_light
2021-05-10 10:24:31 +00:00
- id: kitchen-button-3 # Lower left
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 3'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_short_press
subtype: button_3
action:
- service: light.turn_off
target:
entity_id: light.kitchen_lights
2021-05-10 10:24:31 +00:00
- id: kitchen-button-4 # Lower Right
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 4'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_short_press
subtype: button_4
action:
- service: light.turn_off
target:
entity_id: light.hallway_light
2021-05-10 10:24:31 +00:00
- id: kitchen-button-2-held # Upper right
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 2 Hold'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_long_press
subtype: button_2
action:
- service: light.turn_on
target:
entity_id: light.hallway_light
data:
brightness_step_pct: 10
2021-05-10 10:24:31 +00:00
- id: kitchen-button-4-held # Upper right
2021-04-17 10:35:32 +00:00
alias: '[Kitchen] Button 4 Hold'
description: ''
mode: single
trigger:
- device_id: d2550c7b3da088e146edf7dc9d295310
domain: zha
platform: device
type: remote_button_long_press
subtype: button_4
action:
- service: light.turn_on
target:
entity_id: light.hallway_light
data:
brightness_step_pct: -10
# Kitchen sink button
- id: kitchen-sink-button-on
alias: '[Kitchen] Sink Button On'
2020-12-29 20:45:59 +00:00
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: light.turn_on
data:
entity_id: light.kitchen_sink_lighstrip
mode: single
2021-05-10 10:24:31 +00:00
2021-04-17 10:35:32 +00:00
- id: kitchen-sink-button-off
alias: '[Kitchen] Sink Button Off'
2020-12-29 20:45:59 +00:00
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: light.turn_off
data:
entity_id: light.kitchen_sink_lighstrip
mode: single
2021-05-10 10:24:31 +00:00
2021-04-17 10:35:32 +00:00
- id: kitchen-sink-button-hold-on
alias: '[Kitchen] Sink Button Hold On'
2020-12-29 20:45:59 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: a47c928b108240ed8866f9f7a70bc844
command: move_with_on_off
action:
- service: light.turn_on
data:
entity_id: light.kitchen_lights
2020-12-29 20:45:59 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-04-17 10:35:32 +00:00
- id: kitchen-sink-button-hold-off
alias: '[Kitchen] Sink Button Hold Off'
2020-12-29 20:45:59 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: a47c928b108240ed8866f9f7a70bc844
command: move
args:
- 1
- 83
action:
- service: light.turn_off
data:
entity_id: light.kitchen_lights
2020-12-29 20:45:59 +00:00
mode: single