Add bedroom button automations
This commit is contained in:
parent
5a9956cbcd
commit
b95459ba00
104
automations/files/bedroom-button.yaml
Normal file
104
automations/files/bedroom-button.yaml
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
# Single click
|
||||||
|
- id: bedroom-button-turn-on
|
||||||
|
alias: '[Bedroom] Button Turn On'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: turn_on
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
||||||
|
- id: bedroom-button-turn-off
|
||||||
|
alias: '[Bedroom] Button Turn Off'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: turn_off
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
||||||
|
- id: bedroom-button-dim-up
|
||||||
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: dim_up
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_step_pct: 10
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
||||||
|
- id: bedroom-button-dim-down
|
||||||
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: dim_down
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_step_pct: -10
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
||||||
|
# Double click
|
||||||
|
- id: bedroom-button-dim-up-double
|
||||||
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_double_press
|
||||||
|
subtype: dim_up
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_pct: 90
|
||||||
|
kelvin: 3200
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
||||||
|
- id: bedroom-button-dim-down-double
|
||||||
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
trigger:
|
||||||
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_double_press
|
||||||
|
subtype: dim_down
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_pct: 10
|
||||||
|
kelvin: 2000
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_1
|
||||||
|
- light.bedroom_2
|
||||||
|
mode: single
|
Loading…
Reference in New Issue
Block a user