SolarAssistant#

deye-only

GbbOptimizer integration with the Deye inverter via SolarAssistant and Home Assistant.

Supported Configurations#

  • Home Assistant (HA) with SolarAssistant (SA) connected to a hybrid Deye inverter as inverter_1

Requirements#

  • Home Assistant with Mosquitto broker
  • SolarAssistant installed and connected to the Deye inverter
  • Configured Mosquitto Bridge with a topic for SolarAssistant

SolarAssistant Configuration#

In the SolarAssistant settings go to Configuration -> Advanced MQTT and change:

  • Allow setting changes -> Enabled

Bridge Configuration#

In the /share/mosquitto/GbbOptimizer.conf file use the following topic line:

1
topic # both 2 solar_assistant/ <PlantId>/solar_assistant/

Instead of the standard ha_gbb/ line described in Mosquitto Bridge.

MQTT Topics#

Read (SolarAssistant -> GbbOptimizer)#

TopicDescription
{PlantId}/solar_assistant/total/battery_state_of_charge/stateBattery SOC
{PlantId}/solar_assistant/inverter_1/battery_voltageBattery voltage (if voltage-based control)
{PlantId}/solar_assistant/total/grid_energy_in/stateEnergy drawn from the grid (kWh)
{PlantId}/solar_assistant/total/grid_energy_out/stateEnergy sent to the grid (kWh)
{PlantId}/solar_assistant/total/load_energy/stateConsumption (kWh)
{PlantId}/solar_assistant/total/pv_energy/statePV production (kWh)
{PlantId}/solar_assistant/inverter_1/work_mode/stateCurrent operating mode
{PlantId}/solar_assistant/inverter_1/max_charge_current/stateMaximum charging current

Write (GbbOptimizer -> SolarAssistant)#

TopicDescription
{PlantId}/solar_assistant/inverter_1/capacity_point_{i}/setSet SOC in TimeOfUse
{PlantId}/solar_assistant/inverter_1/voltage_point_{i}/setSet voltage (if voltage-based control)
{PlantId}/solar_assistant/inverter_1/grid_charge_point_{i}/setEnable/disable grid charging
{PlantId}/solar_assistant/inverter_1/work_mode/setChange operating mode
{PlantId}/solar_assistant/inverter_1/max_charge_current/setChange charging current

SolarAssistant currently does not allow remotely changing the start time or Power in the TimeOfUse table. Therefore GbbOptimizer sets all hour rows to the same values.

Importing Consumption Data from SolarAssistant (Solarman/DeyeCloud)#

For Deye installations with Solarman or DeyeCloud, consumption data can be imported from SolarAssistant instead of from the inverter:

  1. Configure Mosquitto Bridge
  2. Add the following topic to the bridge configuration:
1
topic # both 2 solar_assistant/total/load_energy/ <PlantId>/solar_assistant/total/load_energy/
  1. In the installation parameters check the option “Consumption data is sent from HomeAssistant/SolarAssistant and not fetched from the inverter”

More Information#