Changed entity prefix issue.

9 comments started 2023-10-28 last 2023-10-28
Home AutomationHome Assistant
S
#1 Sykes

Folks
I've FINALLY got 'round to setting-up HA on a RPi.
I'm running the HA operating system off the micro SD card.
I've installed Mosquitto as the MQTT broker, along with the GivTCP add-on.
Got it working on one of my two inverters (thought I'd test one, first). It discovered the inverter, and loaded all the entities etc.
For the second inverter, I decided to use a more meaningful prefix, which worked fine - meaning I could more easily identify each inverter's entities.
Following this bout of success, and now having instantly become 'god of all things HA/MQTT, and GivTCP' I decided to change the Entity prefix for the first inverter, in a bid to change the entity names to the same syntax as the other one. I did this on the config page of GivTCP.
Once I'd found which inverter was on which IP address, I also swapped the IP addresses around on the same config page.
The upshot is, that one inverter's now working fine in HA, but the other (the very first one I did) still has the original names for all of the entities, and is also no longer getting any data.

I think what I need is to clear out the cache of old data, and instruct the broker / GivTCP to re-load everything, and re-discover all the new settings.

I've tried re-starting everything - including completely re-booting the RPi, but to no avail.

Can anyone suggest a way to 'refresh' everything, or is it a case of re-installing the broker, and GivTCP?

TA.

T
#2 TX200

Sykes apparently stop GivTCP, make a note of all your config items, then empty the actual config folder in GivTCP (don't delete the folder!)

Start it up and hopefully sorted. Might need to delete the old devices from GivTCP to get rid of the old entities.

Leave mqtt as it is, shouldn't need to do anything with that.

G
#3 geoffreycoan

I changed my inverter names to G_ and H_ as the GivTCP and GivTCP2 were a mouthful, especially as repeated twice in some of the battery entities. I think I did as TX200 said, stopped givtcp, changed the config and restarted it. Maybe uninstalled it, can’t remember.

All works fine

S
#4 Sykes

TX200 Thanks. I'll have a butcher's at that.

S
#6 Sykes

TX200 empty the actual config folder in GivTCP

TX200 I can't see how to empty this folder.
I've been in via Settings/Add-ons/GivTCP/Configuration and used the 'Reset to defaults' feature, then re-entered all the info on the config page, but it's not changed anything.

T
#7 TX200

Sykes have to install a file manager app I think. A slightly scary thing. Don't edit or delete the wrong thing. 🤣

S
#8 Sykes

TX200 Ta.

S
#9 Sykes

Folks
For anyone experiencing a similar issue...
The issue turned out to be user error (isn't it always?)!
I needed to have the ..."Is it on old firmware?" option selected to 'On' for both inverters, on the config page of the GivTCP add-on.
Doh!