Setup automations for kitchen button
This commit is contained in:
parent
a370b76fec
commit
3398d72036
@ -1,5 +1,102 @@
|
|||||||
- id: button-kitchen-on
|
# Kitchen button
|
||||||
alias: '[Kitchen] Button On'
|
- id: kitchen-button-1
|
||||||
|
# Upper Left
|
||||||
|
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
|
||||||
|
- id: kitchen-button-2
|
||||||
|
# Upper right
|
||||||
|
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
|
||||||
|
- id: kitchen-button-3
|
||||||
|
# Lower left
|
||||||
|
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
|
||||||
|
- id: kitchen-button-4
|
||||||
|
# Lower Right
|
||||||
|
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
|
||||||
|
- id: kitchen-button-2-held
|
||||||
|
# Upper right
|
||||||
|
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
|
||||||
|
- id: kitchen-button-4-held
|
||||||
|
# Upper right
|
||||||
|
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'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -12,8 +109,8 @@
|
|||||||
data:
|
data:
|
||||||
entity_id: light.kitchen_sink_lighstrip
|
entity_id: light.kitchen_sink_lighstrip
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-kitchen-off
|
- id: kitchen-sink-button-off
|
||||||
alias: '[Kitchen] Button Off'
|
alias: '[Kitchen] Sink Button Off'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -26,8 +123,8 @@
|
|||||||
data:
|
data:
|
||||||
entity_id: light.kitchen_sink_lighstrip
|
entity_id: light.kitchen_sink_lighstrip
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-kitchen-hold-on
|
- id: kitchen-sink-button-hold-on
|
||||||
alias: '[Kitchen] Button Hold On'
|
alias: '[Kitchen] Sink Button Hold On'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@ -40,8 +137,8 @@
|
|||||||
data:
|
data:
|
||||||
entity_id: light.kitchen_lights
|
entity_id: light.kitchen_lights
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-kitchen-hold-off
|
- id: kitchen-sink-button-hold-off
|
||||||
alias: '[Kitchen] Button Hold Off'
|
alias: '[Kitchen] Sink Button Hold Off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
|
Loading…
Reference in New Issue
Block a user