Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.17 KB

File metadata and controls

40 lines (32 loc) · 2.17 KB

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

Buy Me A Coffee

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

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

If you like this repository please leave a star ⭐

Features

All features are tested and only approximate real circumstances!

  • fully offline!
  • predict battery state in the evening after charging.
  • predict battery state in the morning after discharging.
  • predict battery charging time.
  • predict the minimum charge needed to get overnight.
  • predict the time left of solar.
  • predict the start of charging.
  • example Lovelace card (mushroom required).

ToDo

Any contributions to improve the code are appreciated!

  • Complete English translation (most entities have English descriptions in code)
  • improve configuration
  • 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 algorithm this helps everybody!

  1. copy all files oft the battery-predict.yaml into your custom yaml integrations folder
  2. make changes appropriate to your setup (set entity IDs, battery size, average consumption...)
  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.