223 lines
6.4 KiB
YAML
223 lines
6.4 KiB
YAML
# Kitchen button
|
|
- 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:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Day
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_lights
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 2000
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'off'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_lights
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 3200
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Night
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_lights
|
|
data:
|
|
brightness_pct: 5
|
|
kelvin: 2700
|
|
|
|
- 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
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.hallway_lightstrip
|
|
|
|
- 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
|
|
alias: '[Kitchen] Sink Button'
|
|
trigger:
|
|
- device_id: 1610374adcb5c5c1a763616a57411eac
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_short_press
|
|
subtype: turn_on
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.kitchen_sink_lighstrip
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_off
|
|
entity_id: light.kitchen_sink_lighstrip
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.kitchen_sink_lighstrip
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_sink_lighstrip
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 2000
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'off'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_sink_lighstrip
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 3200
|
|
mode: single
|
|
|
|
- id: kitchen-sink-button-hold
|
|
alias: '[Kitchen] Sink Button Hold'
|
|
trigger:
|
|
- device_id: 1610374adcb5c5c1a763616a57411eac
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_long_press
|
|
subtype: dim_up
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.kitchen_lights
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_off
|
|
entity_id: light.kitchen_lights
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.kitchen_lights
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_lights
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 2000
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'off'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.kitchen_lights
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 3200
|
|
mode: single
|