leiweibau / Pi.Alert

Scan the devices connected to your WIFI / LAN and alert you the connection of unknown devices. It also warns if a "always connected" device disconnects. In addition, it is possible to check web services for availability. For this purpose HTTP status codes and the response time of the service are evaluated.
https://leiweibau.net
GNU General Public License v3.0
342 stars 25 forks source link

Mqtt doesn't work as expected #266

Closed mironalessandro closed 4 months ago

mironalessandro commented 4 months ago

Hello is the first time that i'm trying to use mqtt broker on pi alert to send all infos to my home assistant instance.

I already set up all the parameters of my mqtt broker(i have a lot of other services on this broker)

The log of pi.alert says this:

23:53:15 [2024-03-02 23:53:15+01:00] [Test] START Test: MQTT 23:53:15 [Notification] Udating API files 23:53:16 [2024-03-02 23:53:16+01:00] START Run: MQTT 23:53:16 MQTT In script 23:53:16 [Database] Opening DB 23:53:16 [plugin_helper] reading config file 23:53:16 MQTT In script 23:53:16 [Database] Opening DB Traceback (most recent call last): File "/home/pi/pialert/front/plugins/_publisher_mqtt/mqtt.py", line 363, in sys.exit(main()) ^^^^^^ File "/home/pi/pialert/front/plugins/_publisher_mqtt/mqtt.py", line 61, in main mqtt_start(db) File "/home/pi/pialert/front/plugins/_publisher_mqtt/mqtt.py", line 255, in mqtt_start client = mqtt_create_client()
^^^^^^^^^^^^^^^^^^^^ File "/home/pi/pialert/front/plugins/_publisher_mqtt/mqtt.py", line 239, in mqtt_create_client client = mqtt_client.Client('PiAlert') # Set Connecting Client ID
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/myenv/lib/python3.11/site-packages/paho/mqtt/client.py", line 766, in init raise ValueError( ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details

23:53:16 [Plugins] ⚠ ERROR - enable LOG_LEVEL=debug and check logs 23:53:16 [Plugins] No output received from the plugin MQTT - enable LOG_LEVEL=debug and check logs 23:53:16 [2024-03-02 23:53:16+01:00] END Run: MQTT 23:53:16 [Test] END Test: MQTT

i just check with MQTT Explorer and i don't see anything. Seems a bug or something like this.

I'm using the last public version of pi.alert.

App updates

You are up-to-date. Check out what I am working on.

Built on 2024-02-16

Installed version v24.2.17

jokob-sk commented 4 months ago

Hey @mironalessandro ,

Looks like you posted this in the incorrect fork. Please check this issue on my fork: https://github.com/jokob-sk/Pi.Alert/issues/580

Thanks, jokob

leiweibau commented 4 months ago

Wrong fork