[Bedroom] Add option to control blinds
This commit is contained in:
parent
81410a4348
commit
e0be246707
@ -1,6 +1,7 @@
|
|||||||
# Single click
|
# Single click
|
||||||
- id: bedroom-button-turn-on
|
- id: bedroom-button-turn-on
|
||||||
alias: '[Bedroom] Button Turn On'
|
alias: '[Bedroom] Button Turn On'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -9,10 +10,10 @@
|
|||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
action:
|
action:
|
||||||
- service: script.bedroom_lights_on
|
- service: script.bedroom_lights_on
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-turn-off
|
- id: bedroom-button-turn-off
|
||||||
alias: '[Bedroom] Button Turn Off'
|
alias: '[Bedroom] Button Turn Off'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -21,10 +22,10 @@
|
|||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
action:
|
action:
|
||||||
- service: script.bedroom_all_lights_off
|
- service: script.bedroom_all_lights_off
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-up
|
- id: bedroom-button-dim-up
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -36,10 +37,10 @@
|
|||||||
data:
|
data:
|
||||||
brightness_step_pct: 10
|
brightness_step_pct: 10
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-down
|
- id: bedroom-button-dim-down
|
||||||
alias: '[Bedroom] Button Dim Down'
|
alias: '[Bedroom] Button Dim Down'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -51,11 +52,11 @@
|
|||||||
data:
|
data:
|
||||||
brightness_step_pct: -10
|
brightness_step_pct: -10
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
# Double click
|
# Double click
|
||||||
- id: bedroom-button-dim-up-double
|
- id: bedroom-button-dim-up-double
|
||||||
alias: '[Bedroom] Button Dim Up Double'
|
alias: '[Bedroom] Button Dim Up Double'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -68,10 +69,10 @@
|
|||||||
brightness_pct: 90
|
brightness_pct: 90
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-down-double
|
- id: bedroom-button-dim-down-double
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -84,4 +85,30 @@
|
|||||||
brightness_pct: 10
|
brightness_pct: 10
|
||||||
kelvin: 2000
|
kelvin: 2000
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
# Held
|
||||||
|
- id: bedroom-button-turn-on-held
|
||||||
|
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
|
||||||
|
|
||||||
|
- id: bedroom-button-turn-off-held
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user