2021-10-11 18:15:50 +00:00
|
|
|
- id: office-blinds-button-up
|
|
|
|
alias: '[Office Blinds] Up'
|
2021-07-26 20:52:33 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
|
|
|
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.office_blind
|
|
|
|
state: 'closing'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'opening'
|
|
|
|
sequence:
|
|
|
|
- service: cover.stop_cover
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'closed'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'open'
|
|
|
|
sequence:
|
|
|
|
- service: cover.close_cover
|
|
|
|
entity_id: cover.office_blind
|
2021-07-26 20:52:33 +00:00
|
|
|
mode: single
|
|
|
|
|
2021-10-11 18:15:50 +00:00
|
|
|
- id: office-blinds-button-down
|
|
|
|
alias: '[Office Blinds] Down'
|
2021-07-26 20:52:33 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
|
|
|
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.office_blind
|
|
|
|
state: 'closing'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'opening'
|
|
|
|
sequence:
|
|
|
|
- service: cover.stop_cover
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
- conditions:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'closed'
|
|
|
|
- condition: state
|
|
|
|
entity_id: cover.office_blind
|
|
|
|
state: 'open'
|
|
|
|
sequence:
|
|
|
|
- service: cover.open_cover
|
|
|
|
entity_id: cover.office_blind
|
2021-07-26 20:52:33 +00:00
|
|
|
mode: single
|