2022-05-15 12:10:52 +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_on
|
|
|
|
action:
|
2021-10-17 13:26:26 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
2022-05-15 12:10:52 +00:00
|
|
|
- condition: numeric_state
|
2022-05-13 22:51:12 +00:00
|
|
|
entity_id: cover.office_blinds
|
2022-05-15 12:10:52 +00:00
|
|
|
attribute: current_position
|
|
|
|
below: 51
|
2021-10-17 13:26:26 +00:00
|
|
|
sequence:
|
|
|
|
- service: cover.close_cover
|
2022-05-13 22:51:12 +00:00
|
|
|
entity_id: cover.office_blinds
|
2022-05-15 12:10:52 +00:00
|
|
|
default:
|
|
|
|
- service: cover.set_cover_position
|
|
|
|
data:
|
|
|
|
position: 50
|
|
|
|
target:
|
|
|
|
entity_id: cover.office_blinds
|
2021-07-26 20:52:33 +00:00
|
|
|
mode: single
|
|
|
|
|
2022-05-15 12:10:52 +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_off
|
|
|
|
action:
|
2021-10-17 13:26:26 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
2022-05-15 12:10:52 +00:00
|
|
|
- condition: numeric_state
|
2022-05-13 22:51:12 +00:00
|
|
|
entity_id: cover.office_blinds
|
2022-05-15 12:10:52 +00:00
|
|
|
attribute: current_position
|
|
|
|
above: 49
|
2021-10-17 13:26:26 +00:00
|
|
|
sequence:
|
|
|
|
- service: cover.open_cover
|
2022-05-13 22:51:12 +00:00
|
|
|
entity_id: cover.office_blinds
|
2022-05-15 12:10:52 +00:00
|
|
|
default:
|
|
|
|
- service: cover.set_cover_position
|
|
|
|
data:
|
|
|
|
position: 50
|
|
|
|
target:
|
|
|
|
entity_id: cover.office_blinds
|
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: office-blinds-button-down-all
|
|
|
|
alias: '[Office Blinds] Down All'
|
|
|
|
trigger:
|
|
|
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_long_press
|
|
|
|
subtype: dim_up
|
|
|
|
action:
|
|
|
|
- service: cover.close_cover
|
|
|
|
entity_id:
|
|
|
|
- cover.dining_blinds
|
|
|
|
- cover.office_blinds
|
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: office-blinds-button-up-all
|
|
|
|
alias: '[Office Blinds] Up All'
|
|
|
|
trigger:
|
|
|
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_long_press
|
|
|
|
subtype: dim_down
|
|
|
|
action:
|
|
|
|
- service: cover.open_cover
|
|
|
|
entity_id:
|
|
|
|
- cover.dining_blinds
|
|
|
|
- cover.office_blinds
|
2021-07-26 20:52:33 +00:00
|
|
|
mode: single
|