2021-07-26 22:28:52 +00:00
|
|
|
- id: bedroom-blinds-button-up
|
|
|
|
alias: '[Bedroom Blinds] Up'
|
|
|
|
trigger:
|
|
|
|
- device_id: c90f649df514f80d36ca1a8fde308867
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
action:
|
2021-10-17 13:26:26 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'closing'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'opening'
|
|
|
|
sequence:
|
|
|
|
- service: cover.stop_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'closed'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'open'
|
|
|
|
sequence:
|
|
|
|
- service: cover.close_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|
2021-07-26 22:28:52 +00:00
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: bedroom-blinds-button-down
|
|
|
|
alias: '[Bedroom Blinds] Down'
|
|
|
|
trigger:
|
|
|
|
- device_id: c90f649df514f80d36ca1a8fde308867
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
2021-10-17 13:26:26 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'closing'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'opening'
|
|
|
|
sequence:
|
|
|
|
- service: cover.stop_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'closed'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
state: 'open'
|
|
|
|
sequence:
|
|
|
|
- service: cover.open_cover
|
|
|
|
entity_id: cover.bedroom_blinds
|
2021-07-26 22:28:52 +00:00
|
|
|
mode: single
|