Skip to content

Commit

Permalink
Add solar assistant to predbat (#1723)
Browse files Browse the repository at this point in the history
* Update config.py

* Create solar_assistant.yaml

* [pre-commit.ci lite] apply automatic fixes

* Update custom-dictionary-workspace.txt

* Update index.md

* Update inverter-setup.md

* Update inverter-setup.md

* Update inverter-setup.md

* [pre-commit.ci lite] apply automatic fixes

* Update inverter-setup.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Trefor Southwell <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent 850326d commit a701b4c
Show file tree
Hide file tree
Showing 5 changed files with 378 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ geseriale
Ginlong
GivEnergy
givtcp
growatt
HACS
hadashboard
hanres
Expand Down
27 changes: 27 additions & 0 deletions apps/predbat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,33 @@
"can_span_midnight": True,
"charge_discharge_with_rate": False,
},
"SA": {
"name": "Solar Assistant",
"has_rest_api": False,
"has_mqtt_api": False,
"output_charge_control": "none",
"charge_control_immediate": False,
"current_dp": 0,
"has_charge_enable_time": False,
"has_discharge_enable_time": False,
"has_target_soc": False,
"has_reserve_soc": False,
"has_timed_pause": False,
"charge_time_format": "S",
"charge_time_entity_is_option": False,
"soc_units": "%",
"num_load_entities": 1,
"has_ge_inverter_mode": False,
"time_button_press": False,
"clock_time_format": "%Y-%m-%dT%H:%M:%S",
"write_and_poll_sleep": 5,
"has_time_window": False,
"support_charge_freeze": False,
"support_discharge_freeze": False,
"has_idle_time": False,
"can_span_midnight": False,
"charge_discharge_with_rate": False,
},
}

# Control modes for Solax inverters
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Home battery prediction and automatic charging for Home Assistant supporting mul
- Fox
- Sofar
- LuxPower
- Solar Assistant

Also known by some as Batpred or Batman!

Expand Down
7 changes: 7 additions & 0 deletions docs/inverter-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PredBat was originally written for GivEnergy inverters using the GivTCP integrat
| SunSynk | [Sunsynk](https://github.com/kellerza/sunsynk) | [sunsynk.yaml](https://raw.githubusercontent.com/springfall2008/batpred/main/templates/sunsynk.yaml) |
| Fox | [Foxess](https://github.com/nathanmarlor/foxess_modbus) | [fox.yaml](https://raw.githubusercontent.com/springfall2008/batpred/main/templates/fox.yaml) |
| LuxPower | [LuxPython](https://github.com/guybw/LuxPython_DEV) | [luxpower.yaml](https://raw.githubusercontent.com/springfall2008/batpred/main/templates/luxpower.yaml) |
| Solar Assistant | [Solar Assistant](https://solar-assistant.io/help/home-assistant/setup) | [solar_assistant.yaml](https://raw.githubusercontent.com/springfall2008/batpred/main/templates/solar_assistant.yaml) |

Note that support for all these inverters is in various stages of development. Please expect things to fail and report them as Issues on Github.

Expand Down Expand Up @@ -236,6 +237,12 @@ This requires the LuxPython component which integrates with your Lux Power inver
- Copy the template luxpower.yaml from templates into your apps.yaml and edit inverter and battery settings as required
## Solar Assistant
You need to have a Solar Assistant installation <https://solar-assistant.io>
Copy the template solar_assistant.yaml from templates into your apps.yaml and edit inverter and battery settings as required (the template has growatt, yours might/will have different entity ids on Home Assistant)
## Sunsynk
- Copy the Sunsynk apps.yaml template and edit for your system.
Expand Down
Loading

0 comments on commit a701b4c

Please sign in to comment.