1
0
ansible-home-assistant/configuration/automations/dining-blinds.yaml

72 lines
2.1 KiB
YAML
Raw Normal View History

2021-10-11 18:15:50 +00:00
- id: button-dining-blinds-up
alias: '[Dining Blinds] Up'
2021-06-24 18:25:46 +00:00
trigger:
- device_id: 6818c2a8921603a8a04e6c6f4d45a8ec
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.dining_blinds
state: 'closing'
- condition: state
entity_id: cover.dining_blinds
state: 'opening'
sequence:
- service: cover.stop_cover
entity_id: cover.dining_blinds
- conditions:
- condition: or
conditions:
- condition: state
entity_id: cover.dining_blinds
state: 'closed'
- condition: state
entity_id: cover.dining_blinds
state: 'open'
sequence:
- service: cover.close_cover
entity_id: cover.dining_blinds
2021-06-24 18:25:46 +00:00
mode: single
2021-10-11 18:15:50 +00:00
- id: button-dining-blinds-down
alias: '[Dining Blinds] Down'
2021-06-24 18:25:46 +00:00
trigger:
- device_id: 6818c2a8921603a8a04e6c6f4d45a8ec
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.dining_blinds
state: 'closing'
- condition: state
entity_id: cover.dining_blinds
state: 'opening'
sequence:
- service: cover.stop_cover
entity_id: cover.dining_blinds
- conditions:
- condition: or
conditions:
- condition: state
entity_id: cover.dining_blinds
state: 'closed'
- condition: state
entity_id: cover.dining_blinds
state: 'open'
sequence:
- service: cover.open_cover
entity_id: cover.dining_blinds
2021-06-24 18:25:46 +00:00
mode: single