-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewblue.yaml
204 lines (196 loc) · 6.11 KB
/
newblue.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
blueprint:
name: Room Thermostat Temperature Control
description: >
Adjust the thermostat setpoint based on external temperature, room schedules,
and specific conditions.
domain: automation
input:
thermostat_inputs:
name: '# Thermostat Inputs'
collapsed: false
input:
thermostat:
name: Target Thermostat
description: Select the thermostat to control.
selector:
entity:
integration: ramses_cc
domain: climate
scheduled_setpoint:
name: Scheduled Setpoint Helper
description: Input helper to retrieve the scheduled setpoint temperature.
selector:
entity:
domain: sensor
device_class: temperature
external_temperature:
name: External Temperature Sensor
description: Select the external temperature sensor.
selector:
entity:
domain: sensor
device_class: temperature
delta_above_15:
name: Delta for >15°C
description: Adjustment to setpoint when external temperature is above 15°C.
selector:
number:
min: -3
max: 3
step: 0.5
delta_above_10:
name: Delta for >10°C
description: Adjustment to setpoint when external temperature is between 10°C and 15°c.
selector:
number:
min: -3
max: 3
step: 0.5
delta_10_to_5:
name: Delta for 10°C to 5°C
description: Adjustment to setpoint when external temperature is between 10°C and 5°C.
selector:
number:
min: -3
max: 3
step: 0.5
delta_5_to_0:
name: Delta for 5°C to 0°C
description: Adjustment to setpoint when external temperature is between 5°C and 0°C.
selector:
number:
min: -3
max: 3
step: 0.5
delta_below_0:
name: Delta for <0°C
description: Adjustment to setpoint when external temperature is below 0°C.
selector:
number:
min: -3
max: 3
step: 0.5
occupancy_inputs:
name: '# Occupancy Inputs'
collapsed: false
input:
room_occupancy_sensor:
name: Room Occupancy Sensor
description: Select the room occupancy sensor.
selector:
entity:
domain: binary_sensor
unoccupied_offset:
name: Unoccupied Offset
description: How much should the room temperature decrease when the room is unoccupied.
selector:
number:
min: -5
max: 0
step: 0.5
unoccupied_duration:
name: Unoccupied Duration
description: How long in minutes should the room be marked as unoccupied before decreasing the temperature.
selector:
number:
min: 0
max: 59
step: 1
mode: restart
trigger_variables:
outside_temperature: !input external_temperature
variables:
external_temperature_var: !input external_temperature
scheduled_setpoint_var: !input scheduled_setpoint
current_temperature: "{{ states(external_temperature_var) | float }}"
scheduled_setpoint: "{{ states(scheduled_setpoint_var) | float }}"
delta_above_15: !input delta_above_15
delta_above_10: !input delta_above_10
delta_10_to_5: !input delta_10_to_5
delta_5_to_0: !input delta_5_to_0
delta_below_0: !input delta_below_0
triggers:
- platform: time_pattern
minutes: "/5"
# - platform: state
# entity_id: !input scheduled_setpoint
conditions:
- condition: state
entity_id: input_boolean.holiday_mode
state: "off"
- platform: not
conditions:
- platform: state
entity_id: binary_sensor.home_occupancy
state: "off"
for:
hours: 0
minutes: 30
seconds: 0
- platform: time
after: "06:30:00"
before: "22:30:00"
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
# - platform: template
# value_template: "{{ states(outside_temperature) | float < 15 }}"
actions:
- choose:
- condition: template
value_template: "{{ current_temperature > 15 }}"
sequence:
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint + delta_above_15 }}"
hvac_mode: "heat"
- conditions:
- condition: template
value_template: "{{ current_temperature > 10 }}"
sequence:
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint + delta_above_10 }}"
hvac_mode: "heat"
- conditions:
- condition: template
value_template: "{{ 5 < current_temperature <= 10 }}"
sequence:
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint + delta_10_to_5 }}"
- conditions:
- condition: template
value_template: "{{ 0 < current_temperature <= 5 }}"
sequence:
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint + delta_5_to_0 }}"
- conditions:
- condition: template
value_template: "{{ current_temperature <= 0 }}"
sequence:
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint + delta_below_0 }}"
- delay: "00:15:30"
- service: climate.set_temperature
target:
entity_id: !input thermostat
data:
temperature: "{{ scheduled_setpoint }}"