Skip to content

elektrinis/ha-battery-prediction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Offline Homeassistant-solar-forecast-and-battery-state-forecast

Homeassistant solar battery charge prediction with display card. Works plug and play with the modbus sungrow integration for HA (https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant)

Bildschirmfoto 2023-05-07 um 09 57 38

(first row is only shown when there is no production/ second and third row is shown when there is production.

Features

all features are tested and only approximate real circumstances!

  • fully offline!
  • predict battery state at evening after charging
  • predict battery state at morning after decharging
  • predict battery charging time
  • predict minimum charge needed to get over night
  • predict time left of solar
  • predict start of charging
  • example lovelace card (mushroom required)

ToDo

any contributions to improve the code are appreciated!

  • compleate english translation (most entitys have english description in code)
  • improve konfiguration
  • improve accuracy
  • sometimes the prediction fails by calculating negative percentages because of insufficient solar. this should be limited to realistic values (0-100%)
  • use local weather data to improve prediction

Installation

please contribute ANY upgrades to the card or algorythm thia helps everybody!

  1. copy all files oft the battery-predict.yaml into your custom yaml integrations folder
  2. make changes for your individual setup (set entity ids battery size, avg consumtion...)
  3. copy the card as a manual yaml config into lovelace. !mushroom required!
  4. edit the current production of solar entity in the conditional cards

_

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

About

battery prediction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published