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
| 2024-10-04 13:24:37,645 :: hewalex2mqtt :: INFO :: Device_Pcwu_MqttTopic: Heatpump
2024-10-04 13:24:37,646 :: hewalex2mqtt :: DEBUG :: Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
2024-10-04 13:24:37,647 :: hewalex2mqtt :: INFO :: Subscribed to: Heatpump/Command/#
2024-10-04 13:24:37,647 :: hewalex2mqtt :: DEBUG :: Sending SUBSCRIBE (d0, m1) [(b'Heatpump/Command/#', 1)]
2024-10-04 13:24:37,652 :: hewalex2mqtt :: DEBUG :: Received CONNACK (0, 0)
2024-10-04 13:24:37,652 :: hewalex2mqtt :: INFO :: Verbonden to MQTT Broker with result code: 0
2024-10-04 13:24:37,652 :: hewalex2mqtt :: DEBUG :: Sending SUBSCRIBE (d0, m2) [(b'Heatpump/#', 0)]
2024-10-04 13:24:37,653 :: hewalex2mqtt :: INFO :: ABBOSubscribed to MQTT topic: Heatpump/#
2024-10-04 13:24:37,654 :: hewalex2mqtt :: DEBUG :: Received SUBACK
2024-10-04 13:24:37,654 :: hewalex2mqtt :: DEBUG :: Received PUBLISH (d0, q0, r1, m0), 'Heatpump/Command/HeatPumpEnabled', ... (5 bytes)
2024-10-04 13:24:37,655 :: hewalex2mqtt :: INFO :: Received message with topic: Heatpump/Command/HeatPumpEnabled
2024-10-04 13:24:37,655 :: hewalex2mqtt :: INFO :: Received command: False
2024-10-04 13:24:37,655 :: hewalex2mqtt :: INFO :: Received command to set HeatPumpEnabled to False
2024-10-04 13:24:37,658 :: hewalex2mqtt :: INFO :: Connecting to PCWU at 192.168.0.51:8899
2024-10-04 13:24:37,663 :: hewalex2mqtt :: INFO :: writePcwuConfig: Serial<id=0x7f0ecf6f7d00, open=True>(port='socket://192.168.0.51:8899', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2024-10-04 13:24:37,665 :: hewalex2mqtt :: INFO :: Serial connection established.
2024-10-04 13:24:38,064 :: hewalex2mqtt :: ERROR :: Caught exception in on_message: Invalid Const Bytes
Exception in thread Thread-4 (_thread_main):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "/config/apps/hewalex2mqtt.py", line 105, in on_message_mqtt
self.writePcwuConfig(register_name, command_value)
File "/config/apps/hewalex2mqtt.py", line 229, in writePcwuConfig
self.dev.write(ser, registerName, payload)
File "/config/apps/hewalex_geco/devices/base.py", line 298, in write
return self.writeRegister(ser, regnum, val)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/apps/hewalex_geco/devices/base.py", line 284, in writeRegister
return self.processAllMessages(r)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/apps/hewalex_geco/devices/base.py", line 182, in processAllMessages
m = self.processMessage(m, returnRemainingBytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/apps/hewalex_geco/devices/base.py", line 168, in processMessage
self.validateHardHeader(h)
File "/config/apps/hewalex_geco/devices/base.py", line 39, in validateHardHeader
raise Exception("Invalid Const Bytes")
Exception: Invalid Const Bytes
2024-10-04 13:24:38,369 :: hewalex2mqtt :: ERROR :: Error in readPCWU: Invalid Const Bytes
2024-10-04 13:24:38,774 :: hewalex2mqtt :: INFO :: Heatpump/InstallationScheme 1
2024-10-04 13:24:38,774 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m3), 'b'Heatpump/InstallationScheme'', ... (1 bytes)
2024-10-04 13:24:38,774 :: hewalex2mqtt :: INFO :: Heatpump/HeatPumpEnabled False
2024-10-04 13:24:38,774 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m4), 'b'Heatpump/HeatPumpEnabled'', ... (5 bytes)
2024-10-04 13:24:38,774 :: hewalex2mqtt :: INFO :: Heatpump/TapWaterSensor 0
2024-10-04 13:24:38,774 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m5), 'b'Heatpump/TapWaterSensor'', ... (1 bytes)
2024-10-04 13:24:38,774 :: hewalex2mqtt :: INFO :: Heatpump/TapWaterTemp 50.0
2024-10-04 13:24:38,774 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m6), 'b'Heatpump/TapWaterTemp'', ... (4 bytes)
2024-10-04 13:24:38,774 :: hewalex2mqtt :: INFO :: Heatpump/TapWaterHysteresis 5.0
2024-10-04 13:24:38,775 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m7), 'b'Heatpump/TapWaterHysteresis'', ... (3 bytes)
2024-10-04 13:24:38,775 :: hewalex2mqtt :: INFO :: Heatpump/AmbientMinTemp 5.0
2024-10-04 13:24:38,775 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m8), 'b'Heatpump/AmbientMinTemp'', ... (3 bytes)
2024-10-04 13:24:38,775 :: hewalex2mqtt :: INFO :: Heatpump/AntiFreezingEnabled True
2024-10-04 13:24:38,775 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m9), 'b'Heatpump/AntiFreezingEnabled'', ... (4 bytes)
2024-10-04 13:24:38,775 :: hewalex2mqtt :: INFO :: Heatpump/WaterPumpOperationMode 1
2024-10-04 13:24:38,775 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m10), 'b'Heatpump/WaterPumpOperationMode'', ... (1 bytes)
2024-10-04 13:24:38,775 :: hewalex2mqtt :: INFO :: Heatpump/FanOperationMode 0
2024-10-04 13:24:38,775 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m11), 'b'Heatpump/FanOperationMode'', ... (1 bytes)
2024-10-04 13:24:38,777 :: hewalex2mqtt :: INFO :: Heatpump/DefrostingInterval 45
2024-10-04 13:24:38,777 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m12), 'b'Heatpump/DefrostingInterval'', ... (2 bytes)
2024-10-04 13:24:38,777 :: hewalex2mqtt :: INFO :: Heatpump/DefrostingStartTemp -7.0
2024-10-04 13:24:38,777 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m13), 'b'Heatpump/DefrostingStartTemp'', ... (4 bytes)
2024-10-04 13:24:38,777 :: hewalex2mqtt :: INFO :: Heatpump/DefrostingStopTemp 13.0
2024-10-04 13:24:38,777 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m14), 'b'Heatpump/DefrostingStopTemp'', ... (4 bytes)
2024-10-04 13:24:38,777 :: hewalex2mqtt :: INFO :: Heatpump/DefrostingMaxTime 8
2024-10-04 13:24:38,777 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m15), 'b'Heatpump/DefrostingMaxTime'', ... (1 bytes)
2024-10-04 13:24:39,582 :: hewalex2mqtt :: INFO :: Heatpump/ExtControllerHPOFF True
2024-10-04 13:24:39,582 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m16), 'b'Heatpump/ExtControllerHPOFF'', ... (4 bytes)
2024-10-04 13:24:39.886323 INFO AppDaemon: App initialization complete
2024-10-04 13:25:07,660 :: hewalex2mqtt :: INFO :: Connecting to PCWU at 192.168.0.51:8899
2024-10-04 13:25:07,664 :: hewalex2mqtt :: INFO :: Serial connection established.
2024-10-04 13:25:08,066 :: hewalex2mqtt :: INFO :: Heatpump/date 2024-10-04
2024-10-04 13:25:08,066 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m17), 'b'Heatpump/date'', ... (10 bytes)
2024-10-04 13:25:08,066 :: hewalex2mqtt :: INFO :: Heatpump/time 13:26:46
2024-10-04 13:25:08,066 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m18), 'b'Heatpump/time'', ... (8 bytes)
2024-10-04 13:25:08,066 :: hewalex2mqtt :: INFO :: Heatpump/T1 15.5
2024-10-04 13:25:08,066 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m19), 'b'Heatpump/T1'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T2 45.4
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m20), 'b'Heatpump/T2'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T3 45.6
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m21), 'b'Heatpump/T3'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T6 37.1
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m22), 'b'Heatpump/T6'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T7 38.7
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m23), 'b'Heatpump/T7'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T8 14.7
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m24), 'b'Heatpump/T8'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T9 21.5
2024-10-04 13:25:08,067 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m25), 'b'Heatpump/T9'', ... (4 bytes)
2024-10-04 13:25:08,067 :: hewalex2mqtt :: INFO :: Heatpump/T10 26.4
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m26), 'b'Heatpump/T10'', ... (4 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/IsManual True
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m27), 'b'Heatpump/IsManual'', ... (4 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/FanON False
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m28), 'b'Heatpump/FanON'', ... (5 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/CirculationPumpON False
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m29), 'b'Heatpump/CirculationPumpON'', ... (5 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/HeatPumpON False
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m30), 'b'Heatpump/HeatPumpON'', ... (5 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/CompressorON False
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m31), 'b'Heatpump/CompressorON'', ... (5 bytes)
2024-10-04 13:25:08,068 :: hewalex2mqtt :: INFO :: Heatpump/HeaterEON False
2024-10-04 13:25:08,068 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m32), 'b'Heatpump/HeaterEON'', ... (5 bytes)
2024-10-04 13:25:08,069 :: hewalex2mqtt :: INFO :: Heatpump/EV1 0
2024-10-04 13:25:08,069 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m33), 'b'Heatpump/EV1'', ... (1 bytes)
2024-10-04 13:25:08,069 :: hewalex2mqtt :: INFO :: Heatpump/WaitingStatus 0
2024-10-04 13:25:08,069 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m34), 'b'Heatpump/WaitingStatus'', ... (1 bytes)
2024-10-04 13:25:08,069 :: hewalex2mqtt :: INFO :: No data received from PCWU.
2024-10-04 13:25:37,662 :: hewalex2mqtt :: INFO :: Connecting to PCWU at 192.168.0.51:8899
2024-10-04 13:25:37,664 :: hewalex2mqtt :: INFO :: Serial connection established.
2024-10-04 13:25:38,069 :: hewalex2mqtt :: INFO :: Heatpump/time 13:27:16
2024-10-04 13:25:38,069 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m35), 'b'Heatpump/time'', ... (8 bytes)
2024-10-04 13:25:38,069 :: hewalex2mqtt :: INFO :: Heatpump/T7 38.8
2024-10-04 13:25:38,070 :: hewalex2mqtt :: DEBUG :: Sending PUBLISH (d0, q0, r0, m36), 'b'Heatpump/T7'', ... (4 bytes)
2024-10-04 13:25:38,070 :: hewalex2mqtt :: INFO :: No data received from PCWU. |