liqi0816 / ble2mqtt

Bluetooth Low Energy to MQTT bridge (like zigbee2mqtt)
2 stars 1 forks source link

Disconnected from broker #4

Open Araxion opened 1 year ago

Araxion commented 1 year ago

Hi, a im facing problem. After few minutes of inactivity i got "Disconnected from broker" message and there is no reconnect. Is there any solution? Thanks.

Araxion commented 1 year ago

Another issue is, when i press bot using HA, just maybe 2 of 10 messages press the bot.

liqi0816 commented 1 year ago

This program will try to reconnect when it receives a "press" command.

It's known that tuya fingerbots go to sleep after a few minutes of inactivity. This is the behavior. I guess keeping it awake can drain its battery quickly.

Waking the bot up can also take some time, so you may need to wait. And if you press it 10 times in a row, excessive presses just get ignored at the fingerbot's side. My experience with the official app has been the same.

I've added an MQTT topic ble2mqtt/MAC_ADDRESSS/ping. Posting any message to this topic can wake the fingerbot up in advance. Hope this helps.