Hi there,
I am running a third party integration which connects to my EV charging station.
The Station does provide information over MQTT.
Now, I am facing some issues with this integration, every time when either the Charging-station will be rebooted - or a restart of HomeAssistant will be done.
I don’t know why - but it seems that not all sensors will be “initialized” correctly after a reboot - and they load some old data… (which I don’t know, where its stored / comming from).
The creator of this integration already told me, that he is not able to fix this at the moment since he does not have time for it - but he told me, that I could fork the code and try to fix it on my own (probably then merging the fix back to his project).
Now, I am not a developer, and do not have much knowledge in writing integrations for HomeAssistant - but I was at least able to add some more sensors to the integration…
But unfortunately, the main issue still exist.
So I would like to ask, if someone does have time and knowledge - and could help me with fixing this?
Here’s a link to my repository:
And here’s the link to the original integration:
I know that it will be hard to provide code without having access to the EV Charger itself - but the main issue seems to be the following case:
- the EV Charger does not send an update for a topic if nothing has changed.
If you will restart the system (integration) there is no MQTT Message available for the specific topic.
But since we already had the correct information, it should somehow be possible to load the old values - since somewhere, some older values are comming from.
For example here:
there are a couple of sensors that behaves in this way and I don’t have any Idea on how to solve this
Maybe - in the worst case, I need to remove this integration and create everything with some custom MQTT sensors or with NodeRed?
I don’t know …