diff --git a/home-assistant/addons/sbam/DOCS.md b/home-assistant/addons/sbam/DOCS.md index d4490d7..6302f55 100644 --- a/home-assistant/addons/sbam/DOCS.md +++ b/home-assistant/addons/sbam/DOCS.md @@ -58,7 +58,8 @@ Do not start yet but configure it: 9. **max_charge:** Maximum amount of power required from the electricity network to charge the battery in W (Default: 3500) 10. **pw_batt_reserve:** Minimum battery capacity to maintain in Wh (Default: 4000, means 4kWh) 11. **defaults:** At the end of the crontab cycle, reconfigure the Fronius inverter to default (automatic management). -12. **debug:** Increase the log level to debug, for example, printing Modbus read/write operations. +12. **reset:** At the Addons boot, reconfigure the Fronius inverter to default. +13. **debug:** Increase the log level to debug, for example, printing Modbus read/write operations. ![chrome_FibpWCPrIW](https://github.com/atbore-phx/sbam/assets/11421185/7d17c36b-9e7c-4499-a0f9-557d0ddbe7bb) diff --git a/home-assistant/addons/sbam/config.json b/home-assistant/addons/sbam/config.json index a8af567..76c7436 100644 --- a/home-assistant/addons/sbam/config.json +++ b/home-assistant/addons/sbam/config.json @@ -18,6 +18,7 @@ "max_charge": "3500", "pw_batt_reserve": "4000", "defaults": "true", + "reset": "false", "debug": "false" }, "schema": { @@ -31,6 +32,7 @@ "max_charge": "float", "pw_batt_reserve": "float", "defaults": "bool", + "reset": "bool", "debug": "bool" } } diff --git a/home-assistant/addons/sbam/run.sh b/home-assistant/addons/sbam/run.sh index ccf0ce4..01436fd 100755 --- a/home-assistant/addons/sbam/run.sh +++ b/home-assistant/addons/sbam/run.sh @@ -12,4 +12,6 @@ export PW_BATT_RESERVE=$(bashio::config 'pw_batt_reserve') export DEFAULTS=$(bashio::config 'defaults') export DEBUG=$(bashio::config 'debug') +bashio::config 'RESET' && sbam configure -d + sbam schedule