-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
152 lines (145 loc) · 4.25 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#####################
- id: sprsun_pc_wybieramy_tryb_pracy_pompy_obiegowej_19e
alias: Wybór trybu pracy pompy obiegowej
trigger:
platform: state
entity_id: input_select.sprsun_pc_g02_pump_work_0_interval_1_normal_2_demand_19e
id: select
to:
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: input
sequence:
- variables:
values:
'0': 0 Interval
'1': 1 Normal
'2': 2 Demand
- service: input_select.select_option
target:
entity_id: input_select.sprsun_pc_g02_pump_work_0_interval_1_normal_2_demand_19e
data:
option: '{{ values.get(trigger.to_state.state) }}'
- conditions:
- condition: trigger
id: select
sequence:
- service: modbus.write_register
data_template:
address: 414
slave: 1
hub: Sprsun PC
value: '{{ trigger.to_state.state[0] | int(0) }}'
- id: sprsun_pc_wybieramy_tryb_pracy_kompresora_190
alias: Wybór trybu pracy kompresora
trigger:
platform: state
entity_id: input_select.sprsun_pc_tryb_pracy_kompresora_190
id: select
to:
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: input
sequence:
- variables:
values:
'0': 0 Normal
'1': 1 ECO
'2': 2 Night
'3': 3 Test
- service: input_select.select_option
target:
entity_id: input_select.sprsun_pc_tryb_pracy_kompresora_190
data:
option: '{{ values.get(trigger.to_state.state) }}'
- conditions:
- condition: trigger
id: select
sequence:
- service: modbus.write_register
data_template:
address: 400
slave: 1
hub: Sprsun PC
value: '{{ trigger.to_state.state[0] | int(0) }}'
- id: sprsun_pc_wybieramy_tryb_pracy_p06_unit_mode_36
alias: Wybór trybu pracy PC
trigger:
platform: state
entity_id: input_select.sprsun_pc_tryb_pracy_p06_unit_mode_36
id: select
to:
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: input
sequence:
- variables:
values:
'0': 0 CWU
'1': 1 Ogrzewanie
'2': 2 Chłodzenie
'3': 3 Ogrzewanie i CWU
'4': 4 Chłodzenie i CWU
- service: input_select.select_option
target:
entity_id: input_select.sprsun_pc_tryb_pracy_p06_unit_mode_36
data:
option: '{{ values.get(trigger.to_state.state) }}'
- conditions:
- condition: trigger
id: select
sequence:
- service: modbus.write_register
data_template:
address: 54
slave: 1
hub: Sprsun PC
value: '{{ trigger.to_state.state[0] | int(0) }}'
- id: sprsun_pc_nastawiony_czas_po_g03_start_internal_185
alias: Nastawa przerw w załączaniu pompy obiegowej
trigger:
platform: state
entity_id: input_number.sprsun_pc_nastawiony_czas_po_g03_start_internal_185
action:
service: modbus.write_register
data_template:
address: 389
hub: Sprsun PC
unit: 1
value: '{{ ((states(''input_number.sprsun_pc_nastawiony_czas_po_g03_start_internal_185'')
| float) | multiply(1) | int) }}'
- id: sprsun_pc_nastawiona_max_freq_of_water_r00
alias: Nastawa max freq kompresora przy grzaniu CWU T>14
trigger:
platform: state
entity_id: input_number.sprsun_pc_nastawiona_freq_of_water_r00
action:
service: modbus.write_register
data_template:
address: 252
hub: Sprsun PC
unit: 1
value: '{{ ((states(''input_number.sprsun_pc_nastawiona_freq_of_water_r00'')
| float) | multiply(1) | int) }}'
- id: sprsun_pc_nastawiona_max_freq_of_heat_r04
alias: Nastawa max freq kompresora przy ogrzewaniu T>14
trigger:
platform: state
entity_id: input_number.sprsun_pc_nastawiona_freq_of_heat_r04
action:
service: modbus.write_register
data_template:
address: 260
hub: Sprsun PC
unit: 1
value: '{{ ((states(''input_number.sprsun_pc_nastawiona_freq_of_heat_r04'')
| float) | multiply(1) | int) }}'