pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
237 stars 108 forks source link

rtl_433 MQTT Auto Discovery will not run after update #179

Closed slandroe closed 9 months ago

slandroe commented 9 months ago

The problem

Auto discovery addon crashes after rtl_433 and rtl_433 autodiscovery version update yesterday. The day before, I tried the two similar *next addons - with the same behaviour.

What addon are you reporting the bug for?

rtl_433_mqtt_autodiscover

What is the addon version?

0.8.0

What type of MQTT Broker are you using?

Home Assistant Mosquitto MQTT Broker

Addon log messages

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
mqtt found in this Home Assistance instance.
Starting rtl_433_mqtt_hass.py...
[2024-02-17T09:10:15+0100] INFO:root:Enabling debug logging
[2024-02-17T09:10:15+0100] INFO:root:Discovering all devices
Exception ignored in: <function Client.__del__ at 0x7f28349f8900>
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in __del__
    self._reset_sockets()
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/usr/local/lib/python3.12/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 "/rtl_433_mqtt_hass.py", line 990, in <module>
    run()
  File "/rtl_433_mqtt_hass.py", line 917, in run
    rtl_433_bridge()
  File "/rtl_433_mqtt_hass.py", line 888, in rtl_433_bridge
    mqttc = mqtt.Client()
            ^^^^^^^^^^^^^
TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Additional information

No response

tomgit33 commented 9 months ago

confirmed, same here. Update rtl_433 an this addon.

Magicpulse commented 9 months ago

Same here after updating the addon

eduardkirkosa commented 9 months ago

same here

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started mqtt found in this Home Assistance instance. Starting rtl_433_mqtt_hass.py... [2024-02-17T09:10:15+0100] INFO:root:Enabling debug logging [2024-02-17T09:10:15+0100] INFO:root:Discovering all devices Exception ignored in: <function Client.del at 0x7f28349f8900> Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in del self._reset_sockets() File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets self._sock_close() File "/usr/local/lib/python3.12/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 "/rtl_433_mqtt_hass.py", line 990, in run() File "/rtl_433_mqtt_hass.py", line 917, in run rtl_433_bridge() File "/rtl_433_mqtt_hass.py", line 888, in rtl_433_bridge mqttc = mqtt.Client() ^^^^^^^^^^^^^ TypeError: Client.init() missing 1 required positional argument: 'callback_api_version' s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Skotniki17 commented 9 months ago

Same here after updating the addon

hindsight2021 commented 9 months ago

Same error post-update as well.

deviantintegral commented 9 months ago

Thanks for the reports, looks like paho-mqtt released a new major version last week. PR is up at https://github.com/pbkhrv/rtl_433-hass-addons/pull/180.

Closing as a duplicate of https://github.com/pbkhrv/rtl_433-hass-addons/issues/178.