njfaria / bmvlog

logger for Victrons BMV Battery Monitors on Raspberry
3 stars 0 forks source link

stops outputting mqtt and doesnt reconnect if mqtt broker is off network for more than a few minutes #1

Closed gazzaman2k closed 2 years ago

gazzaman2k commented 3 years ago

i use this with solpiplog and homeassistant, if i reboot my router or reboot homeassistant and it takes like 5minutes for it to reboot or reload all the integrations the bmv logger fails to reconnect back to the mqtt and just lies dormant, it shows it working in the app on the pi but homeassitant its not logged back into the broker, whilst solpiplog is still connected and publishing its data.

possible to run some sort of reconnect after 5minutes code or somthing until it connects back to broker?

thanks and thankyou for the great work

njfaria commented 3 years ago

i need to implement the reconnection code from solpiplog in the bmvlog , pylonlog and the other ones. On todo list

gazzaman2k notifications@github.com escreveu no dia domingo, 3/01/2021 à(s) 12:34:

i use this with solpiplog and homeassistant, if i reboot my router or reboot homeassistant and it takes like 5minutes for it to reboot or reload all the integrations the bmv logger fails to reconnect back to the mqtt and just lies dormant, it shows it working in the app on the pi but homeassitant its not logged back into the broker, whilst solpiplog is still connected and publishing its data.

possible to run some sort of reconnect after 5minutes code or somthing until it connects back to broker?

thanks and thankyou for the great work

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/njfaria/bmvlog/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCKIIVXLJANSFF2O6RZTPTSYBP6XANCNFSM4VR2YNGA .

gazzaman2k commented 3 years ago

great thankyou for the quick response and great program :)

drschrick12 commented 2 years ago

Hi, is the future now implemented in BMVlog ? Sorry for asking but I need this future.

Thanks a lot.

njfaria commented 2 years ago

fixed in new release 1.1.0