2021-01-07 00:47:39 +00:00
|
|
|
# Single click
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_turn_on
|
2021-01-07 00:47:39 +00:00
|
|
|
alias: '[Bedroom] Button Turn On'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
action:
|
2021-11-12 01:56:26 +00:00
|
|
|
- service: script.bedroom_lights_on
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_turn_off
|
2021-01-07 00:47:39 +00:00
|
|
|
alias: '[Bedroom] Button Turn Off'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
2021-01-23 18:32:51 +00:00
|
|
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
2021-01-07 00:47:39 +00:00
|
|
|
action:
|
2021-11-12 01:56:26 +00:00
|
|
|
- service: script.bedroom_all_lights_off
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_dim_up
|
2021-01-07 00:47:39 +00:00
|
|
|
alias: '[Bedroom] Button Dim Up'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
2021-01-23 18:32:51 +00:00
|
|
|
- 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
|
2021-01-23 18:32:51 +00:00
|
|
|
entity_id: light.bedroom_lights
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_dim_down
|
2021-02-20 02:17:40 +00:00
|
|
|
alias: '[Bedroom] Button Dim Down'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
2021-01-23 18:32:51 +00:00
|
|
|
- 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
|
2021-01-23 18:32:51 +00:00
|
|
|
entity_id: light.bedroom_lights
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2021-01-07 00:47:39 +00:00
|
|
|
# Double click
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_dim_up_double
|
2021-02-20 02:17:40 +00:00
|
|
|
alias: '[Bedroom] Button Dim Up Double'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
2021-01-23 18:32:51 +00:00
|
|
|
- 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
|
2021-01-23 18:32:51 +00:00
|
|
|
entity_id: light.bedroom_lights
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_dim_down_double
|
|
|
|
alias: '[Bedroom] Button Dim Down double'
|
2022-07-10 21:25:16 +00:00
|
|
|
mode: single
|
2021-01-07 00:47:39 +00:00
|
|
|
trigger:
|
2021-01-23 18:32:51 +00:00
|
|
|
- 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
|
2021-01-23 18:32:51 +00:00
|
|
|
entity_id: light.bedroom_lights
|
2022-07-10 21:25:16 +00:00
|
|
|
|
|
|
|
# Held
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_turn_on_held
|
2022-07-10 21:25:16 +00:00
|
|
|
alias: '[Bedroom] Button Blinds up'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_long_press
|
|
|
|
subtype: turn_on
|
|
|
|
action:
|
|
|
|
- service: cover.open_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_button_turn_off_held
|
2022-07-10 21:25:16 +00:00
|
|
|
alias: '[Bedroom] Button Blinds down'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_long_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
|
|
|
- service: cover.close_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|