Update Shutter

This commit is contained in:
2024-10-19 17:38:25 +02:00
parent e147f1cd2a
commit dfc5c10ec3

View File

@@ -29,7 +29,7 @@ blueprint:
default: "21:30:00"
selector:
time:
sensor_device:
sensor_entity:
name: Door/Window Sensor
selector:
entity:
@@ -93,28 +93,30 @@ actions:
state: "off"
sequence:
- action: cover.open_cover
target: !input shutter_entity
target:
- entity_id: !input shutter_entity
- conditions:
- and:
- condition: trigger
id: workday_trigger
- condition: device
type: is_not_open
entity_id: !input sensor_device
entity_id: !input sensor_entity
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
below: -5
sequence:
- action: cover.open_cover
target: !input shutter_entity
target:
- entity_id: !input shutter_entity
- conditions:
- and:
- condition: trigger
id: sun_elevation_trigger
- condition: device
type: is_not_open
entity_id: !input sensor_device
entity_id: !input sensor_entity
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
@@ -124,9 +126,12 @@ actions:
- condition: time
before: !input close_time
then:
- entity_id: !input shutter_entity
type: set_position
action: cover.set_cover_position
target:
entity_id: !input shutter_entity
data:
position: 60
else:
- action: cover.close_cover
target:
- entity_id: !input shutter_entity
type: close