Skip to content

Commit

Permalink
feat(addons): adding reset at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
atbore-phx committed Nov 17, 2024
1 parent b271eb5 commit 4569efd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home-assistant/addons/sbam/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions home-assistant/addons/sbam/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"max_charge": "3500",
"pw_batt_reserve": "4000",
"defaults": "true",
"reset": "false",
"debug": "false"
},
"schema": {
Expand All @@ -31,6 +32,7 @@
"max_charge": "float",
"pw_batt_reserve": "float",
"defaults": "bool",
"reset": "bool",
"debug": "bool"
}
}
2 changes: 2 additions & 0 deletions home-assistant/addons/sbam/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4569efd

Please sign in to comment.