A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
At first I want to thank you for this great tool. I really like it.
But I found an issue with the LWT topic which never go to OFFLINE state, which makes in my opinion no sense.
I tried this with to different ways (all with the same result):
Started the gateway from commandline:
(.venv) [10:21:02] root@smarthome-server-01:/opt/bt-mqtt-gateway# ./gateway.py
10:23:12 Starting
^C10:23:20 Finish current jobs and shut down. If you need force exit use kill
Started the gateway as a systemd daemon
Dez 26 10:15:50 smarthome-server-01 systemd[1]: Started Bluetooth MQTT gateway.
Dez 26 10:15:52 smarthome-server-01 service.sh[11371]: 10:15:52 Starting
Dez 26 10:16:04 smarthome-server-01 service.sh[11371]: 10:16:04 Retrieving data from miscale device 0C:95:41:C9:16:AA timed out after 5 seconds
Dez 26 10:16:04 smarthome-server-01 systemd[1]: Stopping Bluetooth MQTT gateway...
Dez 26 10:16:04 smarthome-server-01 systemd[1]: Stopped Bluetooth MQTT gateway.
It should send Offline, just verified it works in my case. It would be good to get more info about setup / python version / distro etc. Also logs from mqtt server. Are you sure you are looking at correct topic ?
Hi,
At first I want to thank you for this great tool. I really like it.
But I found an issue with the LWT topic which never go to OFFLINE state, which makes in my opinion no sense.
I tried this with to different ways (all with the same result):
Can someone please have a look on that?
Thank you in Advance