-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtrv_booster.yaml
49 lines (42 loc) · 1.04 KB
/
trv_booster.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
blueprint:
name: TRV Booster
description: Some valves don't open fully when the difference is small
domain: automation
input:
themperature:
name: Themperature sensor
selector:
entity:
domain: sensor
device_class: temperature
themperature_min:
name: Minimal themperature to trig the automation
selector:
number:
min: 0
max: 100
step: 0.1
boost:
name: Boost number
selector:
entity:
domain: number
mode: restart
variables:
themperature: !input themperature
themperature_state: '{{ states(themperature) | float(0) }}'
themperature_min: !input themperature_min
boost: !input boost
boost_max: '{{ state_attr(boost, "max") | float(0) }}'
trigger:
- platform: time_pattern
minutes: /5
condition:
- condition: template
value_template: '{{ themperature_state >= themperature_min }}'
action:
- service: number.set_value
target:
entity_id: !input boost
data:
value: '{{ boost_max }}'