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