From 91ecb21832d585459a9a467a9ec5cfa594017afb Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:06:15 +0000 Subject: [PATCH] Dummy change (#421) * Dummy change * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> --- .cspell/custom-dictionary-workspace.txt | 2 +- apps/predbat/predbat.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.cspell/custom-dictionary-workspace.txt b/.cspell/custom-dictionary-workspace.txt index a73fbf67..4c30e87f 100644 --- a/.cspell/custom-dictionary-workspace.txt +++ b/.cspell/custom-dictionary-workspace.txt @@ -11,8 +11,8 @@ autopep Batpred batteryb bierner -Chrg chargedischarge +Chrg citem Codespaces collapsable diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index a5ada6d6..03488e94 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -43,12 +43,14 @@ INVERTER_TYPES = {"GE": "GivEnergy", "GS": "Ginlong Solis", "SE": "SolarEdge", "SX4": "Solax Gen4 (Modbus Power Control)"} +# Inverter modes PREDBAT_MODE_OPTIONS = ["Monitor", "Control SOC only", "Control charge", "Control charge & discharge"] PREDBAT_MODE_MONITOR = 0 PREDBAT_MODE_CONTROL_SOC = 1 PREDBAT_MODE_CONTROL_CHARGE = 2 PREDBAT_MODE_CONTROL_CHARGEDISCHARGE = 3 +# Configuration options inside HA CONFIG_ITEMS = [ { "name": "version",