1
0
ansible-home-assistant/roles/scripts/files/110.office-blinds.yaml

38 lines
1.0 KiB
YAML

office_blinds_up:
alias: '[Office] Blinds up'
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: cover.office_blinds
attribute: current_position
above: 49
sequence:
- service: cover.open_cover
entity_id: cover.office_blinds
default:
- service: cover.set_cover_position
data:
position: 50
target:
entity_id: cover.office_blinds
office_blinds_down:
alias: '[Office] Blinds down'
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: cover.office_blinds
attribute: current_position
below: 51
sequence:
- service: cover.close_cover
entity_id: cover.office_blinds
default:
- service: cover.set_cover_position
data:
position: 50
target:
entity_id: cover.office_blinds