Change Kitchen Button
This commit is contained in:
parent
4c9fd5dea5
commit
a00f77c559
1 changed files with 41 additions and 62 deletions
|
@ -131,15 +131,28 @@
|
||||||
brightness_step_pct: -10
|
brightness_step_pct: -10
|
||||||
|
|
||||||
# Kitchen sink button
|
# Kitchen sink button
|
||||||
- id: kitchen-sink-button-on
|
- id: kitchen-sink-button
|
||||||
alias: '[Kitchen] Sink Button On'
|
alias: '[Kitchen] Sink Button'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: 1610374adcb5c5c1a763616a57411eac
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
action:
|
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:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -163,34 +176,27 @@
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: kitchen-sink-button-off
|
- id: kitchen-sink-button-hold
|
||||||
alias: '[Kitchen] Sink Button Off'
|
alias: '[Kitchen] Sink Button Hold'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: 1610374adcb5c5c1a763616a57411eac
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_long_press
|
||||||
subtype: turn_off
|
subtype: dim_up
|
||||||
action:
|
|
||||||
- service: light.turn_off
|
|
||||||
data:
|
|
||||||
entity_id: light.kitchen_sink_lighstrip
|
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: kitchen-sink-button-hold-on
|
|
||||||
alias: '[Kitchen] Sink Button Hold On'
|
|
||||||
trigger:
|
|
||||||
- platform: event
|
|
||||||
event_type: zha_event
|
|
||||||
event_data:
|
|
||||||
device_id: a47c928b108240ed8866f9f7a70bc844
|
|
||||||
command: move_with_on_off
|
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: light.kitchen_lights
|
||||||
state: Day
|
state: 'on'
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.kitchen_lights
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.kitchen_lights
|
||||||
|
state: 'off'
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
@ -213,31 +219,4 @@
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
kelvin: 3200
|
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
|
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: kitchen-sink-button-hold-off
|
|
||||||
alias: '[Kitchen] Sink Button Hold Off'
|
|
||||||
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
|
|
||||||
mode: single
|
mode: single
|
Loading…
Reference in a new issue