Platform mqtt does not generate unique IDs upon updating to beta2
Hey,
thanks for the awesome update!
Just updated to beta2 from beta1. I simply ran the installer and followed the prompts and chose migratation. If came back fine, except 2 of my sensors command config sensors came back to HA with the
does not generate unique IDs
.
and
its only 2 sensors, so not a bid deal. How can solve this? Should I just delete them and re-make the sensors or does HA simply need to be restarted? thanksSolution:Jump to solution
here's what I did. I ended up deleting it in Hass.Agent configuration, then in MQTT explorer on HA side. Remade the sensors and they are now working without errors. Maybe justa glitch somewhere.
17 Replies
I need to make it clear in the installer that migration is only when going from original to fork. Between fork versions it's not required
May I please see your sensors file from config folder?
sure
sorry bud, where can I get this file?
Within the HASS.Agent UI go to settings, then logging and click on "open logs folder"
It will open a new window with logs, go back/up one folder and then to "config"
C:\Users\username\appdata\local\HASS.Agent\client\config
(Path from memory :D)
You should find json files there with general config, sensors and commands
you got a good memory!
but for the record, its only the command buttons giving that error
That's strange
In the config there are only 2 entries
Is it possible that you have two instances of HASS.Agent running?
thats possible.
I mean, maybe it didn't shutdown properly
This is the only logical explanation I can think of, there should be no way to have two forked instances
Old one maybe?
Unless we have a bug
yeah, im not sure. Maybe I'll reboot the Windows computer and reboot HA.
I mean if there was another instance running, would it also give that error for all the sensors?
Good point
Unless the config differs between them
If you reboot and it still happens the best way to find it out is to either look at task manager if there are two "HASS.Agent.exe" processes or to remove those two buttons and then seing in HA if they are still "available"
ok, great. rebooting the Windows machine, and im only seeing these running:
I'll reboot HA in about 1 hr, I think they getting read to release 2024.6.4 shortly
BTW, when you say remove those buttons, you mean in HA just delete the entity and it should come back?
actually nvm, i cannot delete the entity
Delete them in the forked HASS.Agent and then checking if entity is not unavailable in HA (that would mean there are other instances)
If it will still be an issue then we might look at orphaned entities in HA
Solution
here's what I did. I ended up deleting it in Hass.Agent configuration, then in MQTT explorer on HA side. Remade the sensors and they are now working without errors. Maybe justa glitch somewhere.
Now I'm curious as hell what caused it, might play in vm with "double migration" to see if it happens
Yeah sorry I can't be of more help. Unless it had anything to do with me checking the migration option
all good
I'm glad it works 😄