Hunv / can2mqtt

A Linux or Windows service to forward CAN frames to MQTT messages. Optimized for Stiebel Eltron (at the Moment) but works for all.
MIT License
21 stars 11 forks source link

communication breakdowns #21

Open oduzus opened 9 months ago

oduzus commented 9 months ago

Hi all,

I think this topic is not really an issue with that software, but I would like to know if some of you have the same issue? From time to time the communication breaks down and does not reestablish. I then notice that no mqtt messages are received at my mqtt broker. I am not 100% sure if the reason is relly just the mqtt side I could also imagine that the connection between socket can and can2mqtt is interupted and doe not recover.

So I had the idea if it is possible to configure in the can2mqtt module either a status topic what frequently send a "alive" message to the broker and / set a "last will" statement for the mqtt user which could inform my homeassitant to perform a reboot with my raspberry.

What are your thoughts on that?

Hunv commented 9 months ago

Hi @oduzus , I don't have the issue. For me the can2mqtt is running since about 2 months without any problems. I am using a Raspberry Pi with OpenHabian (a Debian with preconfigured OpenHAB). The MQTT broker is running on the same device.

Are there any logs of can2mqtt when the connection is not reestablished? In theory it should reconnect automatically. The "last will" will not work if the connection to the MQTT broker is already down.