I’m new to Zanzito but in the log of mosquitto I noticed every 2 minutes a has exceeded timeout. I do see in the log of Zanzito that it’s reconnecting.
‘’’
Nov 15 12:30:20 copperhead mosquitto[32415]: 1510745420: Client paho1510742266707000000 has exceeded timeout, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: 1510745420: Socket error on client paho1510742266707000000, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: Client paho1510742266707000000 has exceeded timeout, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: Socket error on client paho1510742266707000000, disconnecting.
‘’’
In the configuration I don’t use subcriptions, so why is it then that Zanzito keeps connecting? it connects but nothing is published to mqtt. What could be the reason of the disconnect?
The client set a timeout when it connect, and should then send a kind of ping more often than the set timeout. Even if the client doesn’t publish/subscribe to anything, as soon as he is connected, he must maintain the connection active.
And this topic belong to Zanzito or Mosqito forum/github, it has few to do with home-assistant
Yes the disconnect can be trigger of it or the device can fall a sleep, but should be good thing, saving battery! Especially that there is no subscription. I only activated location, device status and battery_level.