mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
363 stars 94 forks source link

Fully local Battery charge state prediction #99

Open HAuser1234 opened 1 year ago

HAuser1234 commented 1 year ago

Hello, first this isn‘t a issue. I made a github repository for a homeassistant template code that tries to predict the state oft the battery during das and night. sinne I use this Sungrow-SHx-Inverter integration, this code should work plug and play.

Features

all features are tested and only approximate real circumstances!

If you are interested have a look here: https://github.com/HAuser1234/Homeassistant-solar-forecast-charge-prediction I am glad for contributions of improvements :)

I hope I am at the right place here!

mkaiser commented 1 year ago

hi,

great ideas ;) Thank you for the hints

Will check it in a couple of weeks, I am very swamped this may with work ...

HAuser1234 commented 1 year ago

It does indeed work for me, but I think there is still room for improovement. I would be greatfull for any hints or even better, code improvements! Please let me know if it works for you!

I am currently working on a local weather forecasting tool which is already pretty reliable (even better than internet tools in most cases). In the future I hope to combine both projects. (if you are interested: https://github.com/HAuser1234/homeassistant-local-weather-forecast) In the background I am now also able to get local cloud cover data, without any cameras etc. The only thing that is needed is a cheap weather station. This should also help in recogonizing forecasting patterns (I hope at least!)

mkaiser commented 1 year ago

Took me a while to get the dashboard configured with your config. The mushroom hacs stuff with some spacing drove me nuts..... Sharing it here :)

Will evaluate later, have to work now, again ;)

lovelace_raw_battery_prediction_mushroom_hacs_config.yaml.txt

HAuser1234 commented 1 year ago

Oh great. I will probably add this to the repo soon. Or do you want to PR this? I am looking forward to your experience with it! Maybe you find something i missed or find a way to add more functionality :)