-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
137 lines (136 loc) · 3.24 KB
/
automations.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
#START boiler when a heat circuit was started
- alias: Kazan bekapcsolo
initial_state: on
hide_entity: False
trigger:
platform: state
entity_id: switch.furdo, switch.halo, switch.nappali, switch.gyerekek, switch.konyha
to: 'on'
action:
service: switch.turn_on
entity_id: switch.kazan
#STOP boiler when all heat circutis stoped
- alias: Kazan kikapcsolo
initial_state: on
trigger:
platform: state
entity_id: switch.furdo, switch.halo, switch.nappali, switch.gyerekek, switch.konyha
to: 'off'
condition:
condition: and
conditions:
- condition: state
entity_id: 'switch.kazan'
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: 'switch.furdo'
state: 'off'
- condition: state
entity_id: 'switch.halo'
state: 'off'
- condition: state
entity_id: 'switch.nappali'
state: 'off'
- condition: state
entity_id: 'switch.gyerekek'
state: 'off'
- condition: state
entity_id: 'switch.konyha'
state: 'off'
action:
service: switch.turn_off
entity_id: switch.kazan
# - alias: Kazant kikapcslja ha tul meleg a padlo
# trigger:
# platform: numeric_state
# entity_id: sensor.furdo_1, sensor.halo_1, sensor.nappali_1, sensor.gyerekek_1, sensor.konyha_1
# above: '24'
# action:
# service: switch.turn_off
# entity_id: switch.kazan
#NEON
# - alias: Turn on neon
# trigger:
# - platform: state
# entity_id: switch.neon
# state: 'off'
# condition:
# - condition: time
# after: '07:20:00'
# before: '19:30:00'
# action:
# service: switch.turn_on
# entity_id: switch.Neon
#Bekapcsolja a neton reggel
- alias: Turn on neon
initial_state: True
hide_entity: False
trigger:
# platform: sun
# event: sunrise
- platform: time
after: '7:45'
action:
service: switch.turn_on
entity_id:
- switch.Neon
#Kikapcsolja a neon este
- alias: Turn off neon
initial_state: True
hide_entity: False
trigger:
# platform: sun
# event: sunset
- platform: time
after: '20:00'
action:
service: switch.turn_off
entity_id:
- switch.Neon
# - alias: HA_Start
# trigger:
# - platform: event
# event_type: homeassistant_start
# condition:
# - platform: time
# after: '8:00'
# - platform: time
# before: '20:30'
# action:
# service: switch.turn_on
# entity_id:
# - switch.Neon
# - alias: Check sensor value and show notification
# trigger:
# platform: numeric_state
# entity_id: sensor.furdo
# above: 20
# action:
# service: persistent_notification.create
# data:
# message: "A furdoben 20 foknal melegebb van"
#Test
# - alias: Futes furdo be
# initial_state: False
# hide_entity: False
# trigger:
# platform: numeric_state
# entity_id: sensor.furdo
# below: 22
# action:
# service: switch.turn_on
# entity_id:
# - switch.Furdo
# - alias: Futes furdo ki
# initial_state: False
# hide_entity: False
# trigger:
# platform: numeric_state
# entity_id: sensor.furdo
# above: 22.5
# action:
# service: switch.turn_off
# entity_id:
# - switch.Furdo