tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.77k stars 495 forks source link

Home Assist Auto Discovery does not work #254

Closed LuckyLuzz closed 1 year ago

LuckyLuzz commented 1 year ago

Hi, first of all THANKS :) This is a great project!

My OpenDTU Divice is running since two months without issues. Last week I tried to set ip up with Home Assistant but it did not work out of the Box. I had to add line to the YAML configuration file withhin HA. Following this Post https://community.home-assistant.io/t/hoymiles-dtu-microinverters-pv/253674/21

After I got it working with the updated YAML script I had a look over the MQTT Broker via MQTT Explorer (screenshot attached).

AutoDicoveryOpenDTU

I don't really know why auto discovery does not work but if you comepare the OpenDTU Topic with the Tasmoto Topics you see that they are totaly different. The structure might be it.

Thanks again for this great project :)

tbnobody commented 1 year ago

This is the raw structure of the mqtt topics... This has nothing todo with the Home Assistant Auto Discovery Feature... Did you enable Home Assistant Auto Discovery in the MQTT Configuration?

LuckyLuzz commented 1 year ago

I did enable the Option in OpenDTU settings. Firmware 0.1.18.

The inverter is in another network conected via Fritzbox to Fritzbox VPN function.

tbnobody commented 1 year ago

First of all, your firmware version is very old. I don't know anything about a Fritzbox VPN Function. But if you enable HASS Auto Discovery you should also see a topic called homeassistant/ where several dtu sensor appear. Auto Discovery works in a way that each device just publishes it's sensors into the homeassistant/# topic and HASS reads this topic.

LuckyLuzz commented 1 year ago

the topic homeassistant/# is visible but OpenDTU does not publishes its data there.

The Firmware has been Updates to the latest bin.

Fritzbox is a DSL router. You can connect them via a integrated VPN.

tbnobody commented 1 year ago

Can you make a screenshot of your mqtt settings? Especially the Home Assistant section?

tbnobody commented 1 year ago

And btw... HASS will not publish any inverter data to the homeassistant/ topic... It will just place some json config there which describe where HASS can find the data itself.

LuckyLuzz commented 1 year ago

alright I got it. The base topic setting withhin OpenDTU was set to solar/. I changed it to homeassistant/ and now HASS is recognising the device.

Thanks!

tbnobody commented 1 year ago

Ah I remember that the HASS Auto Discovery Topic was wrong in early releases. The default was solar/ instead of homeassistant/. Your setup should be similar to this screenshot: https://github.com/tbnobody/OpenDTU/blob/master/docs/screenshots/04_MqttAdmin.png

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.