Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go-e Integration stopped providing entities although provided via MQTT #123

Closed
Phipps78 opened this issue Nov 15, 2023 · 27 comments
Closed

Comments

@Phipps78
Copy link

Phipps78 commented Nov 15, 2023

Good morning,

a couple of days ago my Go-e integration stopped populating data in some entities, although the missing data is still provided via MQTT. (Error message in entity "Entity no longer available").
I use some of the entities to feed my Energy dashboard (e.g. sensor.go_echarger_mySN_pgrid).
I tryed to understand the root-cause but can't make it work again, so I hope you guys can help me.

Here's what I tryed and learned:

  • I checked my MQTT connection using MQTT Explorer: the data from the missing entities is still being provided from Go-eCharger to MQTT server and i can see how it updates fine
  • I restored my daily backup from a day earlier of when I still received data > no change
  • I re-installed the Go-e Integration > no change
  • I restarted Homeassistant

Here is an overview of which entities are available and which aren't:
Go-e1
go-e2
go-e3

Any advice would be greatly appreciated!

Thanks
Philipp

@Phipps78 Phipps78 changed the title Entities from Go-Echarger no longer provided Go-e Integration stopped providing entities although provided via MQTT Nov 16, 2023
@freedoc35
Copy link

Hi,
having the same issue. Would be great to have those entities for using in automations.
Looking forward to solution comments
Thanks
Dietmar

@syssi
Copy link
Owner

syssi commented Nov 25, 2023

Did you update Home Assistant recently? Please make sure you are using the latest release of this custom component.

@Phipps78
Copy link
Author

Phipps78 commented Nov 26, 2023 via email

@syssi
Copy link
Owner

syssi commented Nov 26, 2023

I'm talking about the version of this custom component. Do you use HACS to install third party integrations?

@stormmurdoc
Copy link

Hi, having the same issues.
Installed the integration via HACS
Version: 0.21.1
Home Assistant Version: 2023.12.1 (core) & 20231208.2 (front-end)

Any advice?

@AndihX
Copy link

AndihX commented Dec 19, 2023

I can join the club. All entities in the integration are gone.
MQTT shows data is running fine.
Happened from one day to the other, and i have no clue what is causing this.

@tuglerxda
Copy link

Has anyone resolved the issue?

@syssi
Copy link
Owner

syssi commented Dec 28, 2023

In most cases the go-e charger dropped the leading slash of the topic prefix so the integration doesn't pick up the traffic anymore. Please make sure all topics or you go-e charger starts with a /.

@toleabivol
Copy link

Please make sure all topics or you go-e charger starts with a /.

How would one add the "/" prefix if the setting is not available in the mobile app ?

Firmware v: 042.0
Hardware v: 2
App v: 3.2.11

@syssi
Copy link
Owner

syssi commented Dec 28, 2023

Go to the Internet view -> Extended settings -> scroll to the bottom (MQTT section). There is a setting called Prefix. What's the prefix of your device at the moment?

@mr-gosh
Copy link

mr-gosh commented Dec 28, 2023

What's the prefix of your device at the moment?

As i have the same Problem I respond here
mine is:
/go-eCharger/xxxxxx/

and xxxxxx are the IDs we got from out chargers

@toleabivol
Copy link

toleabivol commented Dec 29, 2023

IMG_20231229_101653

Go to the Internet view -> Extended settings -> scroll to the bottom (MQTT section). There is a setting called Prefix. What's the prefix of your device at the moment?

I don't have it.
I have the MQTT section but there is no Prefix setting/input field. With mosquitto_sub I can see that the topic published is "go-eCharger/xxxxxx/status"

@mr-gosh
Copy link

mr-gosh commented Dec 29, 2023

IMG_20231229_124150.jpg

In my App-Version it looks like this.
And I tried it with and without leading slash.

Funny thing is that everything worked on my old pi. But I moved to a new one and there I can add the devices via its 6-digit s rial and I can see in the mqtt server logs that the device is correctly registered but all entities are created as "unavailable".
What could cause this?

@syssi
Copy link
Owner

syssi commented Feb 3, 2024

Is this still an issue? I would like to resolve the issue + get a better understanding what's going on in detail. I must admit it's hard to understand what's the issue in detail and are we all talking about the same thing. :-)

@AndihX
Copy link

AndihX commented Feb 3, 2024 via email

@dubtec
Copy link

dubtec commented Feb 5, 2024

This is what my go-eCharger produces when viewed from MQTT Explorer:
image
I observe that this is different than the other entries as there appears to be an empty white-space parent topic. Unfortunately, I wasn't able to change the MQTT topic in the past.

@SIMULATAN
Copy link

Same problem here, it died 2 months ago.
Apparently, one of the 3 I have randomly started working again on the 1st of February?
Although this could be just a bug since I can't find any data in the history even though I'm pretty sure the integration worked when I first set it up a few months ago.
I just tried re-adding one but it still reports as Unavailable.

screenshot of the MQTT explorer

@gerhardvilsecker
Copy link

Hello guys,
I newly installed integration today. Experienced same problems reported by all other. Inspired by discussions in this thread I "played around a bit" with prefix when configuring integration. As soon as I used "go-eCharger" without a leading slash (default is: "/go-eCharger") all sensors, buttons etc are working :-). Not sure if reconfiguring is possible. I removed device and configured it new. Now everything is working perfect.

@dubtec
Copy link

dubtec commented Feb 28, 2024 via email

@gerhardvilsecker
Copy link

I think its all about having prefix indentical in go-e app and in ha integration. At least in my app I am able to configure MQTT Prefix (which I did not prior to integrate with ha). My prefix in go-e app is: "go-eCharger/xxxxxx/". All I did is to align ha config to this prefix....

@dubtec
Copy link

dubtec commented Feb 28, 2024

@gerhardvilsecker Again, thanks for Your hint, but it doesn't work if the MQTT topic is not "go-eCharger/123456/", but something simpler say "myCharger".

The configuration-dialog expects the serial number, and apparently this integration uses it to construct the MQTT topic by appending it to the prefix.

@XionIndigo
Copy link

Hi everyone, I am also affected. I have also tried the leading / but it has no effect on me. Actually, no matter what names I tried (with or without special characters) nothing worked. Of course, the changes were made on both sides - Charger and Integration.

@dubtec
Copy link

dubtec commented Mar 9, 2024

I actually tried changing / adopting the Python scripts of this integration, such that it wouldn’t rely on the convention to append the serial to the topic. I managed to revive most entities with this. But since this was just a hack and would probably break the integration for all others there’s no point in trying to merge it back. I also don’t have time / the expertise to make a stable version out of that.
What I’m trying to say is that, it can be done, but it requires knowledge of how the configuration is being stored and used later on.
Again, I would recommend in the configuration dialog to just ask for the base MQTT topic as a string, exactly how it is displayed in the app. I don’t think the serial really matters otherwise.

@mmick08
Copy link

mmick08 commented Apr 20, 2024

Is this still an issue? I would like to resolve the issue + get a better understanding what's going on in detail. I must admit it's hard to understand what's the issue in detail and are we all talking about the same thing. :-)

As the go-e chargers mqtt prefix is now fully configurable in the app maybe it makes sense to replace the prefix+serial configuration within the integration with the full prefix only.

in my opinion it should not be best practice to expose the serial within your mqtt topics. Instead you should be able to choose something like: go-eCharger/home/ or go-eCharger/carport/

At the moment with the current configuration of the integration you are forced to use serial.

especially in case you have multiple go-e chargers it makes it hard to find the correct entities.

image

@syssi
Copy link
Owner

syssi commented May 25, 2024

Let's close this issue because it's all about a changed base_topic over time because of firmware updates or new setups.

@syssi syssi closed this as completed May 25, 2024
@dubtec
Copy link

dubtec commented May 25, 2024

@syssi Not sure why you’re closing this as this will only be solved with #148, no?

@syssi
Copy link
Owner

syssi commented May 25, 2024

This is the short term mitigation of the issue: #128

But I must admit #148 will resolve the thematic entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests