sdamasoc / domoticz_panasonic_CZ-TACG1

A Python plugin for Domoticz to communicate with Panasonic Cloud Confort throught CZ-TACG1 WiFi adapter
MIT License
8 stars 1 forks source link

Problem with onHeartBeat #9

Closed wimmme closed 10 months ago

wimmme commented 12 months ago

Just installed this today, seems to do it's job, great, thanks ! Just receiving this error:

2023-07-18 23:29:47.274 Error: Airco: Call to function 'onHeartbeat' failed, exception details: 2023-07-18 23:29:47.274 Error: Airco: Traceback (most recent call last): 2023-07-18 23:29:47.274 Error: Airco: File "/opt/domoticz/userdata/plugins/domoticz_panasonic_CZ-TACG1/plugin.py", line 297, in onHeartbeat 2023-07-18 23:29:47.274 Error: Airco: _plugin.onHeartbeat() 2023-07-18 23:29:47.274 Error: Airco: File "/opt/domoticz/userdata/plugins/domoticz_panasonic_CZ-TACG1/plugin.py", line 244, in onHeartbeat 2023-07-18 23:29:47.274 Error: Airco: if (Devices[x].sValue != value): 2023-07-18 23:29:47.274 Error: Airco: UnboundLocalError: local variable 'value' referenced before assignment

wimmme commented 12 months ago

Seem to have found a working solution myself for this, although not the best (not a dev); created a pull request

sdamasoc commented 10 months ago

Hello, sorry for the delay but your correction seems ok for me, I've merge it.

Thanks for the contribution!