View difference between Paste ID: FGr5iSKM and CBFPSehB
SHOW: | | - or go back to the newest paste.
1
#sauce: https://www.facebook.com/groups/737654973088984/posts/2229324637255336/?__cft__[0]=AZWMziaXYbNfw4VqPqW3PIKqvH8qG-71pkie-mPlUpyPDM8Y9TwzjlIyfwy54RFreTH5jBOAaJNz-7t-MGq9OX1hfgPF44_rFNR8ymHBYnR7bW2l3dxpMmtx1uGHQq9sTmpCsiRL1BOIAs_FWNXp24Q0&__tn__=%2CO%2CP-R 
2
3
heru_modbus:
4
    modbus:
5
      - name: "heru"
6
        close_comm_on_error: true
7
        delay: 5
8
        timeout: 5
9
        type: tcp
10
        host: 192.168.1.xxx
11
        port: yyy
12
        message_wait_milliseconds: 30 # Trying to get rid of unavailable...
13
        
14
        
15
#Info for me:
16
# Binary sensor , input type (discrete_input or coil)
17
# Sensor (register_type input or holding)
18
# 0 - coil, 1 - discrete_input, 3 - input register, 4- holding register
19
20
#HA adress = Heru adress -1
21
22
######################################
23
#########       SWITCHES     #########
24
######################################
25
26
        switches:
27
        
28
#### COIL ####
29
30
          - name: FTX Drift
31
            address: 0
32
            write_type: coil
33
            verify:
34
            scan_interval: 10
35
36
          - name: FTX Övertryck
37
            address: 1
38
            write_type: coil
39
            verify:
40
            scan_interval: 10
41
42
          - name: FTX Boost
43
            address: 2
44
            write_type: coil
45
            verify:
46
            scan_interval: 10
47
48
          - name: FTX Borta
49
            address: 3
50
            write_type: coil
51
            verify:
52
            scan_interval: 10
53
            
54
          - name: FTX Återställ Larm
55
            address: 4
56
            write_type: coil
57
            verify:
58
            scan_interval: 10
59
            
60
#### HOLDING ####
61
            
62
          - name: FTX Sommarkyla
63
            address: 18
64
            write_type: holding
65
            command_on: 1
66
            command_off: 0
67
            lazy_error_count: 3
68
            verify:
69
            scan_interval: 60
70
            
71
          - name: FTX Elvärme
72
            address: 66
73
            write_type: holding
74
            command_on: 1
75
            command_off: 0
76
            lazy_error_count: 3
77
            verify:
78
            scan_interval: 60
79
80
######################################
81
######       BINARY SENSORS     ######
82
######################################
83
84
        binary_sensors:
85
86
# #### COIL ####
87
88
#           - name: FTX Drift
89
#             address: 0
90
#             input_type: coil
91
#             device_class: power
92
#             scan_interval: 60
93
#             lazy_error_count: 3
94
95
#### DISCRETE_INPUT - ALARM REGISTERS ####
96
97
          - name: FTX Fire Alarm
98
            address: 9
99
            input_type: discrete_input
100
            device_class: safety
101
            scan_interval: 60
102
            lazy_error_count: 3
103
104
          - name: FTX Rotor Alarm
105
            address: 10
106
            input_type: discrete_input
107
            device_class: safety
108
            scan_interval: 60
109
            lazy_error_count: 3
110
111
          - name: FTX Freeze Alarm
112
            address: 12
113
            input_type: discrete_input
114
            device_class: safety
115
            scan_interval: 60
116
            lazy_error_count: 3
117
118
          - name: FTX Low Supply Alarm
119
            address: 13
120
            input_type: discrete_input
121
            device_class: safety
122
            scan_interval: 60
123
            lazy_error_count: 3
124
125
          - name: FTX Low Rotor Temp Alarm
126
            address: 14
127
            input_type: discrete_input
128
            device_class: safety
129
            scan_interval: 60
130
            lazy_error_count: 3
131
132
          - name: FTX Temp Sensor Open Alarm
133
            address: 17
134
            input_type: discrete_input
135
            device_class: safety
136
            scan_interval: 60
137
            lazy_error_count: 3
138
139
          - name: FTX Temp Sensor Short Alarm
140
            address: 18
141
            input_type: discrete_input
142
            device_class: safety
143
            scan_interval: 60
144
            lazy_error_count: 3
145
146
          - name: FTX Supply Fan Alarm
147
            address: 20
148
            input_type: discrete_input
149
            device_class: safety
150
            scan_interval: 60
151
            lazy_error_count: 3
152
153
          - name: FTX Exhaust Fan Alarm
154
            address: 21
155
            input_type: discrete_input
156
            device_class: safety
157
            scan_interval: 60
158
            lazy_error_count: 3
159
160
          - name: FTX Freeze Protection B
161
            address: 25
162
            input_type: discrete_input
163
            device_class: safety
164
            scan_interval: 60
165
            lazy_error_count: 3
166
167
          - name: FTX Freeze Protection A
168
            address: 26
169
            input_type: discrete_input
170
            device_class: safety
171
            scan_interval: 60
172
            lazy_error_count: 3
173
174
#### DISCRETE_INPUT - STATES ####
175
176
        #   - name: FTX Heating
177
        #     address: 29
178
        #     input_type: discrete_input
179
        #     device_class: heat
180
        #     scan_interval: 60
181
        #     lazy_error_count: 3
182
183
        #   - name: FTX Recovery Heat Cold
184
        #     address: 30
185
        #     input_type: discrete_input
186
        #     device_class: heat
187
        #     scan_interval: 60
188
        #     lazy_error_count: 3
189
190
        #   - name: FTX Cooling
191
        #     address: 31
192
        #     input_type: discrete_input
193
        #     device_class: heat
194
        #     scan_interval: 60
195
        #     lazy_error_count: 3
196
197
198
######################################
199
#########       SENSORS     ##########
200
######################################
201
202
        sensors:
203
          - name: FTX Ute
204
            unit_of_measurement: '°C'
205
            address: 1
206
            data_type: int16
207
            input_type: 'input'
208
            scan_interval: 60
209
            lazy_error_count: 3
210
            scale: 0.1
211
            precision: 1
212
213
          - name: FTX Tilluft
214
            unit_of_measurement: '°C'
215
            address: 2
216
            data_type: int16
217
            input_type: 'input'
218
            scan_interval: 60
219
            lazy_error_count: 3
220
            scale: 0.1
221
            precision: 1
222
223
          - name: FTX Frånluft
224
            unit_of_measurement: '°C'
225
            address: 3
226
            data_type: int16
227
            input_type: 'input'
228
            scan_interval: 60
229
            lazy_error_count: 3
230
            scale: 0.1
231
            precision: 1
232
233
          - name: FTX Avluft
234
            unit_of_measurement: '°C'
235
            address: 4
236
            data_type: int16
237
            input_type: 'input'
238
            scan_interval: 60
239
            lazy_error_count: 3
240
            scale: 0.1
241
            precision: 1
242
243
          - name: FTX Rotor
244
            unit_of_measurement: '°C'
245
            address: 6
246
            data_type: int16
247
            input_type: 'input'
248
            scan_interval: 60
249
            lazy_error_count: 3
250
            scale: 0.1
251
            precision: 1
252
253
          - name: FTX Filter
254
            unit_of_measurement: 'dagar'
255
            address: 19
256
            data_type: int16
257
            input_type: 'input'
258
            scan_interval: 3600
259
            lazy_error_count: 3
260
261
          - name: FTX Tilluftsfläkt
262
            unit_of_measurement: '%'
263
            address: 24
264
            data_type: int16
265
            input_type: 'input'
266
            scan_interval: 60
267
            lazy_error_count: 3
268
269
          - name: FTX Frånluftsfläkt
270
            unit_of_measurement: '%'
271
            address: 25
272
            data_type: int16
273
            input_type: 'input'
274
            scan_interval: 60
275
            lazy_error_count: 3
276
277
          - name: FTX Tilluftsfläkt RPM
278
            unit_of_measurement: 'RPM'
279
            address: 26
280
            data_type: int16
281
            input_type: 'input'
282
            scan_interval: 60
283
            lazy_error_count: 3
284
285
          - name: FTX Frånluftsfläkt RPM
286
            unit_of_measurement: 'RPM'
287
            address: 27
288
            data_type: int16
289
            input_type: 'input'
290
            scan_interval: 60
291
            lazy_error_count: 3
292
            
293
          - name: FTX_Elvärme_255
294
            unit_of_measurement: ''
295
            address: 28
296
            data_type: int16
297
            input_type: 'input'
298
            scan_interval: 60
299
            lazy_error_count: 3
300
301
          - name: FTX_Rotor_speed_255
302
            unit_of_measurement: ''
303
            address: 29
304
            data_type: int16
305
            input_type: 'input'
306
            scan_interval: 60
307
            lazy_error_count: 3
308
309
310
######################################
311
#########       CLIMATE     ##########
312
######################################
313
        # Does not work in fw 1.09, different scale on sensor and target temp.
314
        # Use Setpoint as sensor also, as workaround.
315
        climates:
316
          - name: Heru FTX
317
            address: 1 # Börvärde tilluft
318
            data_type: int16
319
            input_type: 'holding'
320
            scale: 1
321
            offset: 0
322
            precision: 0
323
            max_temp: 25
324
            min_temp: 15
325
            temp_step: 1
326
            target_temp_register: 1 #Börvärde tilluft
327
            scan_interval: 60