Integration for Zevercloud solar system

I already had a configuration of rest platform via an api to Zevercloud.
But this one hasn’t worked for a while.
Apparently Zevercloud now has a new api with another appkey and appsecret.
I have all three keys, but don’t know how to use them.
Thus my request for an integration in Home Assistant where only these three data should be provided.
And where the data from Zevercloud could also be used in the new Energy Dashboard of Home Assistant.

hi

as far as i am aware Zever Solar and as such Zevercloud no longer exists. this means that you can no longer use an API to pull generation data from the cloud. if you still have a working cloud account could you please send the link to the site.

i have managed to get my Zever Solar system to report in HA using a local polling with the rest platform. i used this github repo as a starting point but had to make some changes to make it work in the new energy dashboard. if you want me to go through the changes let me know.

Yes, I am interested in your adjustment to process the local data of the inverter in the new Energy Dashboard of HA. But I also have a working account of Zevercloud with an api, appkey and appssecret. I requested this via email to Zevercloud and within 24 hours they activated it in my existing account. This also works. I tested this by creating an account at PVOutput. Here you can set up an automatic upload by choosing Zevercloud. Three fields must then be filled in, api, appkey and appsecret.

[image]

interesting. i still have access to the cloud app but my inverter wont connect to it to upload data. as to the local connection. at some point this week i will fork that repo and upload my changes. i will let you know when i have done that

I am also collecting data directly from the inverter using the code in this github repo but the Energy dashboard does not handle correctly that the daily power will reset to 0 everyday. In the graph you will see it will start with a negative solar power everyday. Did you manage to find a solution for this?

i never saw this problem with my setup using the github repo i linked so i never had to solve it. oddly enough i do have that issue with my tp link energy monitor wall plug but i think that is because it is not updating the last_reset time every morning but is still resetting to 0.

i will fork the repo i linked and add the necessary mods to make it work with the energy dashboard tonight.

this is the sort of graph i get

here is my fork with the changes i made to get it to work in the energy dashboard. most of the credit should go to a guy on discord who helped me get it working.

2 Likes

I have added your code but I the sensor is now showing:

unit_of_measurement: kWh
friendly_name: Solar E_Today
state_class: measurement
last_reset: {{ now().strftime(’%Y-%m-%d 00:00:00+08:00’) }}

Should the last_reset not be the current date, now it is just adding it as a string?

that is the current date in the correct string format for HA to deal with. although there is 1 thing i forgot to put in the readme. change the +08:00 to whatever your timezone offset from UTC is.

if you copy that string into the templates section of the dev tools it will give you todays data at 00:00

What do you mean with copy that string into the templates section?

I have added this into the configuration.yaml:
homeassistant:
customize:
sensor.solar_e_today:
state_class: “measurement”
last_reset: “{{ now().strftime(’%Y-%m-%d 00:00:00+02:00’) }}”

and the last_reset attribute of this sensor is now this exact string and not a date.

so is mine. i dont understand why but the dev tools dont parse the template when displaying the state. trust me it works. add it to your energy dashboard for befor midnight and it will reset tomorrow.

there is probably an issue somewhere on github about not parsing the templates but for now we just have to trust it.

But what do I need to put in the template section, it is not mentioned on the github page?

right. you dont need to put anything there. i was just saying that as a way to verify that the last_reset part was in fact outputting the correct time/date. what you have now should work.

OK thanks will check tomorrow.

Hi, I’ve added the entire configuration.
But in the Energy dashboard I can’t choose the sensors added with the state_class measurement.
what am I doing wrong?

I had the same issue and added this additional line under the customize part:

device_class: “energy”

Yes you are right, after adding device_class: “energy” it works. Thank you.

When the sun goes down, the inverter also switches off and can no longer be reached from HA.
At that moment the home-assistant.log will fill up with the messages below. Is there anything that can be done about this.
2021-08-17 20:58:04 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:58:04 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:58:34 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:58:34 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:59:04 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:59:04 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:59:34 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed
2021-08-17 20:59:34 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.11/home.cgi failed with All connection attempts failed

thanks i will add that to the github repo. not sure why i didnt need it.

EDIT: i just remembured i added it directly to the sensor. i have updated the github with that.

i haven’t worked out a way. i have just been ignoring it. its pretty easy to filter out if you need the logs. just use a regex to delete every line with that IP