macxq / foxess-ha

Home Assistant & FoxESS integration. Monitor you photovoltaic installation directly from HA ☀️ ⚡️
114 stars 36 forks source link

Long term data import #117

Open veronekk opened 1 year ago

veronekk commented 1 year ago

Hello

I use v0.18, and for current production it works fine. But I've got problem with old data. On energy tab I can see data from 02.01.2023, while in application (Fox Cloud) I can see data from last year.

How can I force it to read older data? HACS button to reload data doesnt work.

macxq commented 1 year ago

Unfortunately this integration does not allow for such backwards import.

Moreover it's not so easy to import historical statistical data into ha -> https://community.home-assistant.io/t/import-old-energy-readings-for-use-in-energy-dashboard/341406/56

skoczo commented 1 year ago

Do you plan to add such feature? I'm on foxess page right now and it looks that there is possibility to fetch historic data per day. POST request on https://www.foxesscloud.com/c/v0/plant/history/raw with json like this {"stationID":"xxxxxxxxxxxxxxxxxxxxxxxxx","variables":["generationPower","feedinPower","loadsPower"],"timespan":"day","beginDate":{"year":2023,"month":2,"day":25,"hour":0,"minute":0,"second":0}}

macxq commented 1 year ago

Currently not, but any contribution into this integration is more then welcome!

Daibutt commented 1 year ago

Well said @macxq :) You have have done all the hard work here to get a great integration pulling in the essential data. Maybe others can assist in adding these extra features ......?!

skoczo commented 1 year ago

Currently not, but any contribution into this integration is more then welcome!

I will try to look at this. I'm new in HomeAssistant need to find out what interfaces need to be implemented for historic data.