syssi / homeassistant-goecharger-mqtt

go-eCharger integration for Home Assistant using the MQTT API
Apache License 2.0
75 stars 17 forks source link

How to add a second go-e Charger? #115

Closed MB1983k closed 8 months ago

MB1983k commented 9 months ago

I am unfortunately not able to add a second go-e charger due to the following issue: Platform goecharger does not generate unique IDs.

How could I solve the problem?

syssi commented 9 months ago

Are you sure you are using this custom component because a unique ID is generated in general here.

MB1983k commented 9 months ago

Yes - I was directly referred from the home assistant page when clicking in "documentation"...

syssi commented 9 months ago

Interesting. I will have a look! :-)

MB1983k commented 9 months ago

Many thanks - if you need further information please let me know. In the meantime I try to start the complete setup again... maybe I had some issues in my setup process

MB1983k commented 9 months ago

Is there something specific I need to include in the field "base topic"? Is there any specific format needed for the serial number?

syssi commented 9 months ago

First of all you should be able to add the component multiple times to talk to different chargers. IMO a missing unique ID shouldn't have an impact here.

The base_topic depends on your charger version & firmware. This is the expected pattern to be able to auto-discover your devices: https://github.com/syssi/homeassistant-goecharger-mqtt/blob/main/custom_components/goecharger_mqtt/config_flow.py#L79-L82

MB1983k commented 9 months ago

ok... to be honest - I do not know what to do with this (sorry!). I am even not able anymore to add again the first go-e charger which worked before... And I think it was auto detected before. I also know from the MQTT Explorer that both send their values correctly to the Mosquitto broker...

MB1983k commented 9 months ago

first device is running again after using my backup... but second one is not discovered and I do not really understand what to do or where I could find helpful instructions...

syssi commented 9 months ago

Could you try to subscribe to your mosquitto broker and provide some received messages (including the topics) of both devices? Do you know how to monitor the MQTT traffic manually?

MB1983k commented 9 months ago

I am able to see all the details send using MQTT Explorer, but I do not know how to monitor it using the Mosquitto broker. Anyway the MQTT is connected to the Mosquitto broker and should therefore show all data

MB1983k commented 9 months ago

Based on the Mosquitto broker the Base topic seems to be go-eCharger/233782/

Anyway I am not able to get it running using the integration. But when monitoring the MQTT Explorer all information are correctly forwarded to the Mosquitto broker. Both go-e Chargers are identical.... same firmware etc. The other one is running without any issues...

syssi commented 9 months ago

Could you tell me the base topic of the working one? Does it start with a / or not?

MB1983k commented 9 months ago

without a /

but I tried to setup the go-e Charger with several combinations for the base topic considering with / and without

Do I need to add anything in configuration.yaml???

MB1983k commented 9 months ago

now it worked ;-)

After a high amount of restarts and even shutting down the system I was able to have it running now... for the base topic I just have included "go-eCharger" and with the serial number it resulted in an autodetect ;-)...

Many thanks for your support!