syssi / homeassistant-goecharger-mqtt

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

Entities not populating - what are correct settings? #130

Closed jasunen closed 9 months ago

jasunen commented 9 months ago

I have go-e Charger running and sending data to my MQTT server.

Home assistant has MQTT integration active and it works.

I enable your integration, have correct serial number and put /goe/ as topic. Still entities are not populated and integration is not receiving any data.

What is correct way to setup the integration? There seems to be no clear instructions.

Edit: Charger is "Go-e Charger Gemini"

syssi commented 9 months ago

Could you provide some complete topic examples? Is there a serial number part of the topic? This is important.

jasunen commented 9 months ago

No, I am using bare /goe/ as prefix in the e-go APP. In HA MQTT integration I receive following:

Message 172 received on /goe/rssi at 8:55 PM:
-78
QoS: 0 - Retain: false
Message 171 received on /goe/eto at 8:55 PM:
3932605
QoS: 0 - Retain: false
Message 170 received on /goe/tpa at 8:55 PM:
6462.143066
QoS: 0 - Retain: false

When configuring the go-eCharger (MQTT) integration:

Serial number*
123456

Base topic*
/goe/

But all entities remain "unavailable".

I tried to manually create some MQTT sensors in HA configuration.yaml:

mqtt:
  sensor:
    - name: "goe_charger_eto_energy_total"
      state_topic: "/goe/eto"
    - name: "goe_charger_lmo_logic_mode"
      state_topic: "/goe/lmo"

And they work just fine!

HA version 2023.10.0

syssi commented 9 months ago

In the past the serial number was always part of the topic. This is the reason why this integration concatenates the base topic and and serial number gathered from the config flow. Please change the topic to /goe/123456 using the Android app. In this case the component will be able to subscribe to the required topics.

jasunen commented 9 months ago

Thanks! That did the trick!

1) In the Android app, MQTT prefix = /goe/123456/ 2) In the integration setup, serial number = 123456 and base topic = /goe