dib0 / elro_connects

The ELRO Connects uses a propriety protocol on the local network over UDP. This is the reversed engineered python implementation of the protocol.
MIT License
16 stars 7 forks source link

Connector status and last will messages #10

Open depuits opened 3 years ago

depuits commented 3 years ago

To have a better monitoring in home assistant and potential other system it would be great to have a birth and last will message to know when the system goes offline.

Besides the birth and last will message there is also a need for a status topic specifically for the connector status. This would be in case the connector itself becomes unavailable because of wifi outage or other problems. Looking at the code I do not see how this would be possible to check because once the connection is established it is always assumed to be connected. Possible related to this is that the connector does not turn green once connected to while this is the case when using the app.

This would change how the mqtt messaging is currently implemented because now the connection is only created while sending a message.