-
Notifications
You must be signed in to change notification settings - Fork 0
/
door-sensor.yaml
89 lines (89 loc) · 2.65 KB
/
door-sensor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
blueprint:
name: Window-Door open, climate off after a defined time
description: An automation that turns off a running your climate device for exmple a heater
or an air conditioning if a window sensor is open for a specific time. It waits
until the window is closed again in order to turn the climate entity on again.
domain: automation
input:
window_entity:
name: Window Sensor
description: The window sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: window
door_entity:
name: Door Sensor 1
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
name: Door Sensor 2
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
name: Door Sensor 3
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
name: Door Sensor 4
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
name: Door Sensor 5
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
name: Door Sensor 6
description: The door sensor that controls the climate entity.
selector:
entity:
domain: binary_sensor
device_class: door
minimum_open_time:
name: Miniumum time the window is open
description: Time in seconds to wait until the automation is triggered
default: 12
selector:
number:
min: 0.0
max: 120.0
unit_of_measurement: seconds
mode: slider
step: 1.0
climate_target:
name: Climate Device
description: The climate entity that is controlled by the window sensor.
selector:
entity:
domain: climate
trigger:
- platform: state
entity_id: !input 'window_entity'
to: 'on'
for: !input 'minimum_open_time'
condition:
- condition: not
conditions:
- condition: state
entity_id: !input 'climate_target'
state: 'off'
action:
- service: climate.turn_off
entity_id: !input 'climate_target'
- wait_for_trigger:
- platform: state
entity_id: !input 'window_entity'
to: 'off'
continue_on_timeout: false
- service: climate.turn_on
entity_id: !input 'climate_target'