Update Shutter
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
blueprint:
|
blueprint:
|
||||||
name: Automated Shutter
|
name: Automated Shutter (Door)
|
||||||
description: Open and close a Shutter
|
description: Open and close a Shutter in combination with a door sensor
|
||||||
domain: automation
|
domain: automation
|
||||||
author: Philipp Klüter
|
author: Philipp Klüter
|
||||||
input:
|
input:
|
||||||
@@ -23,14 +23,19 @@ blueprint:
|
|||||||
default: "08:30:00"
|
default: "08:30:00"
|
||||||
selector:
|
selector:
|
||||||
time:
|
time:
|
||||||
sensor:
|
close_time:
|
||||||
|
name: Closing time
|
||||||
|
description: Time to close the shutter.
|
||||||
|
default: "21:30:00"
|
||||||
|
selector:
|
||||||
|
time:
|
||||||
|
sensor_device:
|
||||||
name: Door/Window Sensor
|
name: Door/Window Sensor
|
||||||
selector:
|
selector:
|
||||||
entity:
|
device:
|
||||||
filter:
|
filter:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class:
|
device_class:
|
||||||
- window
|
|
||||||
- door
|
- door
|
||||||
|
|
||||||
mode: restart
|
mode: restart
|
||||||
@@ -38,10 +43,19 @@ max_exceeded: silent
|
|||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- id: workday_morning_trigger
|
- id: workday_morning_trigger
|
||||||
at: "06:30:00"
|
at: !input workday_morning
|
||||||
trigger: time
|
trigger: time
|
||||||
- id: holiday_morning_trigger
|
- id: holiday_morning_trigger
|
||||||
at: "08:30:00"
|
at: !input holiday_morning
|
||||||
|
trigger: time
|
||||||
|
- id: sun_elevation_trigger
|
||||||
|
entity_id:
|
||||||
|
- sun.sun
|
||||||
|
attribute: elevation
|
||||||
|
below: -5
|
||||||
|
trigger: numeric_state
|
||||||
|
- id: night_trigger
|
||||||
|
at: !input close_time
|
||||||
trigger: time
|
trigger: time
|
||||||
conditions:
|
conditions:
|
||||||
- condition: or
|
- condition: or
|
||||||
@@ -63,16 +77,15 @@ conditions:
|
|||||||
state: "off"
|
state: "off"
|
||||||
actions:
|
actions:
|
||||||
- choose:
|
- choose:
|
||||||
|
- conditions:
|
||||||
- or:
|
- or:
|
||||||
- condition: and
|
- and:
|
||||||
conditions:
|
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: workday_trigger
|
id: workday_trigger
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.workday_sensor
|
entity_id: binary_sensor.workday_sensor
|
||||||
state: "on"
|
state: "on"
|
||||||
- condition: and
|
- and:
|
||||||
conditions:
|
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- holiday_trigger
|
- holiday_trigger
|
||||||
@@ -82,3 +95,39 @@ actions:
|
|||||||
sequence:
|
sequence:
|
||||||
- action: cover.open_cover
|
- action: cover.open_cover
|
||||||
target: !input shutter_entity
|
target: !input shutter_entity
|
||||||
|
- conditions:
|
||||||
|
- and:
|
||||||
|
- condition: trigger
|
||||||
|
id: workday_trigger
|
||||||
|
- condition: device
|
||||||
|
type: is_not_open
|
||||||
|
entity_id: !input sensor_device
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sun.sun
|
||||||
|
attribute: elevation
|
||||||
|
below: -5
|
||||||
|
sequence:
|
||||||
|
- action: cover.open_cover
|
||||||
|
target: !input shutter_entity
|
||||||
|
- conditions:
|
||||||
|
- and:
|
||||||
|
- condition: trigger
|
||||||
|
id: sun_elevation_trigger
|
||||||
|
- condition: device
|
||||||
|
type: is_not_open
|
||||||
|
entity_id: !input sensor_device
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sun.sun
|
||||||
|
attribute: elevation
|
||||||
|
below: -5
|
||||||
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: time
|
||||||
|
before: !input close_time
|
||||||
|
then:
|
||||||
|
- entity_id: !input shutter_entity
|
||||||
|
type: set_position
|
||||||
|
position: 60
|
||||||
|
else:
|
||||||
|
- entity_id: !input shutter_entity
|
||||||
|
type: close
|
||||||
|
|||||||
Reference in New Issue
Block a user