1
0
ansible-home-assistant/configuration/automations/office-blinds.yaml
2022-09-26 21:33:44 +02:00

54 lines
1.3 KiB
YAML

- id: office-blinds-button-down
alias: '[Office Blinds] Down'
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: script.office_blinds_down
mode: single
- id: office-blinds-button-up
alias: '[Office Blinds] Up'
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: script.office_blinds_up
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
mode: single