Add office keylight button automations
This commit is contained in:
parent
fbc3f2f458
commit
bcd8c04b30
@ -418,6 +418,12 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: device_offline
|
type: device_offline
|
||||||
subtype: device_offline
|
subtype: device_offline
|
||||||
|
# Office Keylight button
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: device_offline
|
||||||
|
subtype: device_offline
|
||||||
# Office Motion Sensor
|
# Office Motion Sensor
|
||||||
- device_id: 5dc8b6e216588033d4d31d8c3d561d70
|
- device_id: 5dc8b6e216588033d4d31d8c3d561d70
|
||||||
domain: zha
|
domain: zha
|
||||||
|
99
configuration/automations/office-keylight-button.yaml
Normal file
99
configuration/automations/office-keylight-button.yaml
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
- id: office_keylight_button_toggle
|
||||||
|
alias: '[Office] Keylight button toggle'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: turn_on
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
action:
|
||||||
|
- service: light.toggle
|
||||||
|
data: { }
|
||||||
|
target:
|
||||||
|
entity_id: light.elgato_gw33l1a00453
|
||||||
|
|
||||||
|
- id: office_keylight_button_brightness_up
|
||||||
|
alias: '[Office] Keylight button brightness up'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: dim_up
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_step_pct: 10
|
||||||
|
target:
|
||||||
|
entity_id: light.elgato_gw33l1a00453
|
||||||
|
|
||||||
|
- id: office_keylight_button_brightness_down
|
||||||
|
alias: '[Office] Keylight button brightness down'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: dim_down
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_step_pct: -10
|
||||||
|
target:
|
||||||
|
entity_id: light.elgato_gw33l1a00453
|
||||||
|
|
||||||
|
- id: office_keylight_button_left
|
||||||
|
alias: '[Office] Keylight button left'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: left
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data_template:
|
||||||
|
color_temp: "{{ state_attr('light.elgato_gw33l1a00453', 'color_temp')|int - 10}}"
|
||||||
|
target:
|
||||||
|
entity_id: light.elgato_gw33l1a00453
|
||||||
|
|
||||||
|
- id: office_keylight_button_right
|
||||||
|
alias: '[Office] Keylight button right'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- device_id: 800c754de6e6b10259f371adc123b909
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: right
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data_template:
|
||||||
|
color_temp: "{{ state_attr('light.elgato_gw33l1a00453', 'color_temp')|int + 10}}"
|
||||||
|
target:
|
||||||
|
entity_id: light.elgato_gw33l1a00453
|
||||||
|
|
Loading…
Reference in New Issue
Block a user