CheongKoo / HA_AppDaemonZeverSolarSensor

Get power generation from ZeverSolar Inverter and present it to front end as a sensor for Hass.IO
GNU General Public License v3.0
7 stars 3 forks source link

Error in connecting to Zever solar server #4

Open rjgout opened 3 years ago

rjgout commented 3 years ago

Hi I am running the HA with AppDeamon4 and are getting the following in the log.

This is the url that is feched: 1 1 EAB961730534 YWYKWJLRYBAXRNHH M11 17A31-727R+17829-719R 20:35 21/06/2021 0 1 BS30006011730187 46 2.22 OK Error

2021-06-21 22:02:14.350593 INFO zeversolar_sensor: Error in connecting to Zever solar server 2021-06-21 22:02:14.374453 INFO zeversolar_sensor: Updated: 21/06/2021 22:00 Gen: 0.00kW, Daily energy: 0.00kWh 2021-06-21 22:02:14.375809 WARNING AppDaemon: callback doGetGenAndSendAsSensor() in zeversolar_sensor has now completed 2021-06-21 22:02:14.382062 INFO zeversolar_sensor: ----- ZeverSolar sensor callback -----

It is giving me numbers but it look like it is not reading it right. Is it because ApDeamon4 instead 3?

amiranees commented 3 years ago

I have the same issue. Did you solve the issue @rjgout

amiranees commented 3 years ago

Could AppDaemon 4 be the issue? AppDaemon 3 doesn't exist anymore.

rjgout commented 3 years ago

I have the same issue. Did you solve the issue @rjgout

I did not reslove it. I just the following code in the configuration.

The ip being the ip from the Zeversolar. That was more than enough info for me.

CheongKoo commented 3 years ago

Guys, I've checked in my AppDaemon 4 code. Hopefully it would work for you guys. Apologies for the delay. Have been a bit busy at work.

CheongKoo commented 3 years ago

To get it to work on your system, remember to change the value of the variable zeverSolarURL to your own value.

Quellien commented 3 years ago

I'm still having this problem, unfortunately.

Quellien commented 3 years ago

In the python config file:

# Note that at night, the server is down as there is no power hence need to check
# Below the reading from the URL separated by CR
# 1 1 EAB9618A0399 RSQMMVXNNPJMNWHY M11 17A31-727R+17829-719R 10:58 05/10/2019 0 1 BD500001018A0080 4978 14.52 OK Error
# 0 1      2             3           4           5              6       7      8 9        10         11    12  13   14

on my zeversolar/home.cgi:

1 1 EAB961641107 78LRWX3SS4PSTWH7 M10 17717-709R+15820-458R 08:36 10/09/2021 OK 1 BS30006011640078 V610-01037-08 230 0.37 OK Error

Does te "OK" in stead of "0" on 8 could have any effect on the error Connecting to Zeversolar Server?

/EDIT:

Never mind, solved the problem. My zeversolar/home.cgi actually gave "extra" data. I changed:


genPowerIndex = 11 # Index into the returned string from the URL
dailyEnergyIndex = 12 # Index into returned string from the URL

to


genPowerIndex = 12 # Index into the returned string from the URL
dailyEnergyIndex = 13 # Index into returned string from the URL