Prerequisites¶
sbam requires these prerequisites to function correctly.
Allow Battery Charging from the Public Grid¶
Check if your inverter permits battery charging from the public grid:
- Open the web interface of the inverter
- Select Device Configuration → Components
- Expand the battery section
- Enable "Allow Battery Charging from the Public Grid"
Enable Modbus and Solar API¶
Modbus¶
Remote control of the Fronius inverter's charge requires enabling the "Slave as Modbus TCP" function.
- Open the web interface of the inverter
- Select the Communication section
- Open the Modbus menu
- Activate Slave (Secondary inverter) Modbus TCP
- TCP port: 502
- Model Type: int +SF
Solar API¶
sbam uses the local Fronius API to retrieve battery data:
- Open the web interface of the inverter
- Select the Communication section
- Open the Solar API menu
- Enable Solar API Communication
Solcast Forecasting Service¶
sbam uses Solcast for weather forecasts and solar production estimates. The free tier allows up to 10 API calls per day.
After adding your installation, you will obtain a forecast link:
https://api.solcast.com.au/rooftop_sites/your-site/forecasts?format=json
Copy it — you will need it for the url configuration option.
API Key¶
- Click on your name at the top right on the Solcast site
- Select Your API Key
- Generate the API key and copy it — you will need it for the
apikeyconfiguration option