geustace / home-assistant-enasolar

Custom Integration to support EnaSolar Inverters
GNU General Public License v3.0
5 stars 1 forks source link

error setting up integration #1

Closed insipiens closed 6 months ago

insipiens commented 1 year ago

Hi Glenn,

I tried setting up this for an Enasolar GT series inverter

When I got to entering the IP address it errored out. Below are some screenshots.

image

The Home assistant log showed this detail: image

some details about the installation.

Looking forward to any insight you can provide.

Cheers

John

geustace commented 1 year ago

Latest changes are now all working correctly on 2023.08.2, so if you can provide the html from your inverter's settings.html page I can work on that next. http://inverter.ip/settings.html, the if you can do view source in your browser, cut and past the html and attach to a message. I can then try to work out how to pickup the correct numbers.

geustace commented 1 year ago

There is a long line of inline javascript at about line 12 of the HTML, this is the one I really need as the serial number in my version of the firmware is constructed as follows var b=(Number(("19065")*65536)+Number("44487")).toString(10); If the code in your case it different, the webpage version is not 25, I'll need to poke around a bit for it.

geustace commented 1 year ago

I have updated pyenasolar to use a fictitious serial number if the web page version isnt 25. You will need to redownload from HACS and restart HA.

insipiens commented 1 year ago

Hi Glen

Thanks for that.

The new integration doesn't work either but I noted the html is different to the suggestion you advised. Perhaps this model GT2000 is substantially different?

Attached is the settings.html (zipped as html can't be loaded) enasolarsettings.zip

geustace commented 1 year ago

That web page is nothing like mine :-( , It also has the title Solar Shed, which implies it may be a rebranded version. I would really like to get this to work for you, are you ok with helping? Can you check out whether the following URLs are available from the web interface

http://inverter/meters.xml http://inverter/data.xml http://inverter/wv.txt