1
0
ansible-home-assistant/configuration/automations/bedroom-button.yaml

87 lines
2.1 KiB
YAML
Raw Normal View History

2021-01-07 00:47:39 +00:00
# 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
action:
- service: script.bedroom_lights_on
2021-01-07 00:47:39 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-01-07 00:47:39 +00:00
- 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
2021-01-07 00:47:39 +00:00
action:
- service: script.bedroom_all_lights_off
2021-01-07 00:47:39 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-01-07 00:47:39 +00:00
- 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
2021-01-07 00:47:39 +00:00
action:
- service: light.turn_on
data:
brightness_step_pct: 10
entity_id: light.bedroom_lights
2021-01-07 00:47:39 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-01-07 00:47:39 +00:00
- id: bedroom-button-dim-down
2021-02-20 02:17:40 +00:00
alias: '[Bedroom] Button Dim Down'
2021-01-07 00:47:39 +00:00
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_down
2021-01-07 00:47:39 +00:00
action:
- service: light.turn_on
data:
brightness_step_pct: -10
entity_id: light.bedroom_lights
2021-01-07 00:47:39 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-01-07 00:47:39 +00:00
# Double click
- id: bedroom-button-dim-up-double
2021-02-20 02:17:40 +00:00
alias: '[Bedroom] Button Dim Up Double'
2021-01-07 00:47:39 +00:00
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_double_press
subtype: dim_up
2021-01-07 00:47:39 +00:00
action:
- service: light.turn_on
data:
brightness_pct: 90
kelvin: 3200
entity_id: light.bedroom_lights
2021-01-07 00:47:39 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2021-01-07 00:47:39 +00:00
- 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
2021-01-07 00:47:39 +00:00
action:
- service: light.turn_on
data:
brightness_pct: 10
kelvin: 2000
entity_id: light.bedroom_lights
2021-01-07 00:47:39 +00:00
mode: single