-
Notifications
You must be signed in to change notification settings - Fork 0
/
heating_automation_power_off.yaml
62 lines (62 loc) · 1.81 KB
/
heating_automation_power_off.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
automation:
- id: heating_power_off
alias: Heating Power Off
description: ""
trigger:
- platform: state
entity_id:
- sensor.ebusd_hmu_state00_compressorstate
to: Heating Overrun
condition:
- condition: numeric_state
entity_id: sensor.flats_heating_demand
below: -1.4
- condition: sun
before: sunset
before_offset: -01:00
after: sunrise
after_offset: 02:00
action:
- repeat:
sequence:
- service: logbook.log
data:
name: AM Heizung Temp aus
message:
"Bedarf: {{ heizbedarf }}, AktuelleT: {{ aktuelle_temp }}, Schalte
aus"
- service: !secret notify_admin
data:
message: "HzB: {{ heizbedarf }}, AktT: {{ aktuelle_temp }}, Schalte aus"
- service: climate.set_hvac_mode
data:
hvac_mode: "off"
target:
entity_id: climate.ctlv2_heating_vaillant
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
while:
- condition: numeric_state
entity_id: sensor.flats_heating_demand
below: -1.4
- condition: sun
before: sunset
before_offset: -01:00
after: sunrise
after_offset: 02:00
- service: climate.set_hvac_mode
data:
hvac_mode: heat
target:
entity_id: climate.ctlv2_heating_vaillant
- service: logbook.log
data:
name: AM Heizung Temp aus
message: Schalte ein
- service: !secret notify_admin
data:
message: Schalte ein
mode: single