Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Ikea Remote 2 - Right Single
- description: ""
- trigger:
- - platform: state
- entity_id:
- - sensor.ikea_remote_2_action
- to: arrow_right_click
- condition: []
- action:
- - choose:
- - conditions:
- - condition: numeric_state
- entity_id: cover.taras_dach
- attribute: current_position
- below: "100"
- sequence:
- - choose:
- - conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: cover.taras_dach
- state: opening
- - condition: state
- entity_id: cover.taras_dach
- state: closing
- sequence:
- - service: cover.stop_cover
- data: {}
- target:
- entity_id:
- - cover.taras_dach
- default:
- - wait_for_trigger:
- - platform: state
- entity_id:
- - sensor.ikea_remote_2_action
- to: arrow_right_click
- timeout:
- milliseconds: 500
- - choose:
- - conditions:
- - condition: template
- value_template: "{{ wait.trigger == none }}"
- sequence:
- - service: cover.set_cover_position
- data:
- position: >-
- {{ state_attr("cover.taras_dach",
- "current_position") + 1 }}
- target:
- entity_id: cover.taras_dach
- default:
- - service: cover.open_cover
- data: {}
- target:
- entity_id:
- - cover.taras_dach
- default: []
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement