Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtl_433 MQTT Auto Discovery will not run after update #179

Closed
slandroe opened this issue Feb 17, 2024 · 6 comments
Closed

rtl_433 MQTT Auto Discovery will not run after update #179

slandroe opened this issue Feb 17, 2024 · 6 comments

Comments

@slandroe
Copy link

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
Copy link

confirmed, same here. Update rtl_433 an this addon.

@Magicpulse
Copy link

Same here after updating the addon

@eduardkirkosa
Copy link

eduardkirkosa commented Feb 17, 2024

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
Copy link

Same here after updating the addon

@hindsight2021
Copy link

Same error post-update as well.

@deviantintegral
Copy link
Collaborator

Thanks for the reports, looks like paho-mqtt released a new major version last week. PR is up at #180.

Closing as a duplicate of #178.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants