-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupdate_climate.yaml
105 lines (105 loc) · 2.39 KB
/
update_climate.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
blueprint:
name: Update Climate
description: Update climate based on sensors and time
domain: automation
source_url: https://github.com/Santobert/HA-UpdateClimate/blob/master/blueprints/update_climate.yaml
input:
climate_entity:
name: Climate
selector:
entity:
domain: climate
sensor_off:
name: Sensor Off
selector:
entity:
domain: binary_sensor
sensor_on:
name: Sensor On
selector:
entity:
domain: binary_sensor
sensor_presence:
name: Presence Sensor
selector:
entity:
domain: binary_sensor
device_class: presence
grace_period:
name: Grace Period
selector:
number:
min: 0.0
max: 120.0
unit_of_measurement: s
mode: box
step: 1.0
heating_from:
name: Heating from hour
default: 8
selector:
number:
min: 0.0
max: 23.0
unit_of_measurement: hour
step: 1.0
mode: slider
heating_to:
name: Heating to hour
default: 22
selector:
number:
min: 0.0
max: 23.0
unit_of_measurement: hour
step: 1.0
mode: slider
high_temp:
name: High temperature
default: 24
selector:
number:
min: 15.0
max: 30.0
unit_of_measurement: degrees
step: 1.0
mode: slider
low_temp:
name: Low temperature
default: 20
selector:
number:
min: 15.0
max: 30.0
unit_of_measurement: degrees
step: 1.0
mode: slider
mode: single
trigger:
- hours: '*'
minutes: '1'
platform: time_pattern
- entity_id: !input 'sensor_presence'
platform: state
for:
seconds: !input 'grace_period'
- entity_id: !input 'sensor_on'
platform: state
for:
seconds: !input 'grace_period'
- entity_id: !input 'sensor_off'
platform: state
for:
seconds: !input 'grace_period'
condition: []
action:
- service: python_script.update_climate
data:
entity_id: !input 'climate_entity'
heating_from_hour: !input 'heating_from'
heating_to_hour: !input 'heating_to'
sensor_presence: !input 'sensor_presence'
sensor_off: !input 'sensor_off'
sensor_on: !input 'sensor_on'
high_temp: !input 'high_temp'
low_temp: !input 'low_temp'