hoymiles
hoymiles copied to clipboard
missing 1 required positional argument: / AttributeError: 'Client' object has no attribute '_sock'
I have the following configuration.
HOYMILES_USER: XXX HOYMILES_PASSWORD: XXXX HOYMILES_PLANT_ID: "XXXX" Read_meter_data: true External_MQTT_Server: true MQTT_Host: 192.168.X.X MQTT_User: XX MQTT_Pass: XXX MQTT_TLS: false MQTT_TLS_PORT: "8883" DEVELOPERS_MODE: false LOG_LEVEL: INFO LOG_TO_FILE: false FILE_PATH: hoymiles.log
The add on startup and it gets data from the API, but it looks then there is an issue with the mqtt.
I can connect with the credentials via mqtt client. Any idea what can be wrong here?
2024-02-11 22:28:42,610 - HoymilesAdd-on - INFO - ********** dmslabs&Cosik Hoymiles Gateway v.1.2.2
2024-02-11 22:28:42,610 - HoymilesAdd-on - INFO - Starting up... 2024-02-11 22:28:42
2024-02-11 22:28:42,611 - HoymilesAdd-on - INFO - Using External MQTT Server: True
2024-02-11 22:28:42,611 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/iam/auth_login
2024-02-11 22:28:43,491 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - I got the token!! :-)
2024-02-11 22:28:43,491 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm/station_find
2024-02-11 22:28:43,783 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm/station_select_device_of_tree
2024-02-11 22:28:44,661 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_find_details
2024-02-11 22:28:45,550 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_find_details
2024-02-11 22:28:45,840 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_find_details
Exception ignored in: <function Client.del at 0xffff80b93550>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in del
self._reset_sockets()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
Traceback (most recent call last):
File "/hoymiles.py", line 435, in
Paho MQTT released version 2.0.0 2 days ago with breaking changes: https://github.com/eclipse/paho.mqtt.python/releases/tag/v2.0.0
#133 is ready for testing
version: 1.2.3 works like a charm. Thanks so much 🙏
Thank you for fixing it, works again.
On Tue, 13 Feb 2024 at 7:44 AM, Tomas @.***> wrote:
version: 1.2.3 works like a charm. Thanks so much 🙏
— Reply to this email directly, view it on GitHub https://github.com/dmslabsbr/hoymiles/issues/131#issuecomment-1940514394, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWIG6YG3FBUPBH7SBFWU3LYTMDUDAVCNFSM6AAAAABDD2Z266VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQGUYTIMZZGQ . You are receiving this because you authored the thread.Message ID: @.***>