Hello,
here is an automation that handles the cover when I open the door so the dog can go in the garden.
Step 1: I open the door => it sets the Cover position to 40% so the dog can go out.
Step 2: I close the door
Step 3: I open the door to let the dog in
Step 4: I close the door => it closes the cover.
Hopefully it can be helpfully to someone else.
alias: Dog Mode Stairs
description: ""
triggers:
- type: opened
device_id: 556aaaa871702edd0be58d5a852e0249
entity_id: d29f0a718b7c82f42e83818330f92e23
domain: binary_sensor
trigger: device
- type: not_opened
device_id: 556aaaa871702edd0be58d5a852e0249
entity_id: d29f0a718b7c82f42e83818330f92e23
domain: binary_sensor
trigger: device
conditions: []
actions:
- choose:
- conditions:
- type: is_open
condition: device
device_id: 556aaaa871702edd0be58d5a852e0249
entity_id: d29f0a718b7c82f42e83818330f92e23
domain: binary_sensor
sequence:
- choose:
- conditions:
- condition: device
device_id: bd9a657acd3457caad07407a1f7c5c8f
domain: cover
entity_id: 91e4387957124f92f330d81c624e3c59
type: is_closed
sequence:
- device_id: bd9a657acd3457caad07407a1f7c5c8f
domain: cover
entity_id: 91e4387957124f92f330d81c624e3c59
type: set_position
position: 40
- conditions:
- condition: device
device_id: bd9a657acd3457caad07407a1f7c5c8f
domain: cover
entity_id: 91e4387957124f92f330d81c624e3c59
type: is_position
above: 20
below: 70
sequence:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.dog_mode
- conditions:
- condition: state
entity_id: input_boolean.dog_mode
state: "on"
sequence:
- device_id: bd9a657acd3457caad07407a1f7c5c8f
domain: cover
entity_id: 91e4387957124f92f330d81c624e3c59
type: close
mode: single
It needs an input_boolean helper (also called “Toggle”) called dog_mode