GbbOptimizer can talk to Inverter connected to HomeAssistant in two ways:
- when Inverter is connected using SolarAssistant (only Deye Hybryd inverter for now, other inverters can be added on request)
- when any Inverter is connected to HomeAssistant directly
Creating bridge from HomeAssistant (HA) to GbbOptimizer:
- Add plant by clicking "Add new plant with HomeAssistant"
- In 'Device to connect with inverter' select type of connection.
- Save plant, enter in plant Edit and generate PlantId and PlantToken
- In HA create file /share/mosquitto/GbbOptimizer.conf
connection GbbOptimizer_<plantID>
remote_username <plantID>
remote_password <plantToken>
address <mqtt address see here >:8883
bridge_capath /etc/ssl/certs
topic # both 2 "" <plantID>/
where <plantID> replace with number PlantId and <plantToken> with PlantToken
Next go to:
Embeded charts in HomeAssistant
You can put charts from BatteryForecast on HomeAssistant by showing following page:
https://<address>/Forecast/IndexChart?PlantId=<PlantId>&PlantToken=<PlantToken>&NoMenu=1
- address - see here
- without "<" and ">"
- if your PlantToken contains plus (+) replace it with: %2b
- if your PlantToken contains slash (/) replace it with: %2f
To enable DarkMode add on url end: &DarkMode=1
Additional communication protocol for charts in HomeAssistant (but not only)
https://gbboptimizer.gbbsoft.pl/Manual?PageNo=19
Connecting MqttExplorer to program mqtt server
Name: <any>
Encryption (tls): on
Host: gbboptimizerX-mqtt.gbbsoft.pl (where X is server number)
Port: 8883
UserName: <plantId>
Password: <plant token>
On Advance button:
Topic: delete all and add one: <plantId>/#
MQTT ClientId: add on end: _<plantId>