jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.26k stars 580 forks source link

Need help with HA auto discovey #3120

Open Dillton opened 1 week ago

Dillton commented 1 week ago

Issue

Hello.

I have set up my meters finally after many hours of fine tuning the cameras 😄 and now I am at stage of adding my watermeters to HA. So I have set the mqtt parameters everything like this: image

I can see all the data in MQTT explorer were received by MQTT broker (confings and actual reading values) but no device was populated in HA. image

Also logs confirms that eveything was published: image

Can anyone help me with this?

henrythasler commented 3 days ago

The current release version does not correctly derive the HA service discovery topic from a nested topic as Main Topic. This was fixed with https://github.com/jomjol/AI-on-the-edge-device/pull/3088. Either reduce the Main Topic to one level (e.g. "cold") or build+flash the latest "rolling" branch.

SybexX commented 2 days ago

@henrythasler build the rolling branch it yourself is not absolutely necessary, he can simply download the finished OTA files. https://github.com/jomjol/AI-on-the-edge-device/actions/runs/9439572638

Dillton commented 2 days ago

Ah ok thank you for info. I was thinking that something like this might be the problem but wasn't sure. So far I have created the sensors as needed from mqtt but I will definitely try to update to this once I have some spare time. I will share the result later.