Manual

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:

  1. Add plant by clicking "Add new plant with HomeAssistant"
  2. In 'Device to connect to inverter' select type of connection. 
  3. Save plant, enter in plant Edit and generate PlantId and PlantToken
  4. 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

 

Additional communication protocol for charts in HomeAssistant (but not only)

https://github.com/gbbsoft/GbbConnect/wiki/3.-Protocol-between-GbbVictronWeb-and-external-program