Skip to content
Johan Meijer edited this page Feb 13, 2021 · 1 revision

By default Grott will sent a json message to MQTT.

Grott MQTT behavior is defined ins the MQTT section of the grott.ini file.

[MQTT]
# Mqtt parameters definitions
# Be aware nomqtt = True means no MQTT processing will be done!!!!!!

nomqtt = False
ip = localhost
port = 1883
topic= energy/growatt
auth = False
user = grott
password = growatt2020    

MQTT processing can be disabled by specifying: nomqqt=True
by default MQTT security is disabled. This can be enabled by auth=True.

Example of a JSON MQTT message:

{"device": "INVERTID", "time": "2021-02-13T16:34:28", "buffered": "no",
"values": {"pvstatus": 1, "pvpowerin": 1622, "pv1voltage": 2475,
"pv1current": 6, "pv1watt": 1622, "pv2voltage": 0, "pv2current": 0,
"pv2watt": 0, "pvpowerout": 1460, "pvfrequentie": 4997, "pvgridvoltage":
2353, "pvgridcurrent": 7, "pvgridpower": 1460, "pvgridvoltage2": 0,
"pvgridcurrent2": 0, "pvgridpower2": 0, "pvgridvoltage3": 0,
"pvgridcurrent3": 0, "pvgridpower3": 0, "pvenergytoday": 87,
"pvenergytotal": 43265, "totworktime": 65503878, "pvtemperature": 273,
"pvipmtemperature": 0, "epv1today": 90, "epv1total": 45453, "epv2today": 0,
"epv2total": 0, "epvtotal": 45453}}

The JSON message can be customized. For more information see https://github.com/johanmeijer/grott/wiki/Grott-advanced-(customize-behaviour)

Time:

  • Time message data is created (from data record) or if not available when MQTT message is sent (Server GMT time).

Device

  • Growatt inverter id

Buffered

  • shows if value is from buffer (shine device will buffer data if no connection with growatt server) or actual

Values:

device

  • Serial number growatt device

time

  • Time (yyyy-mm-ddThh.mm.ss)

pvstatus

  • Inverter run state:
    0:waiting, 1:normal, 2:fault

pv1watt

  • PV1 input watt (0.1W)

pv1voltage

  • PV1 voltage (0.1V)

pv1current

  • PV1 input current (0.1A)

pv2watt

  • PV2 input watt (0.1W)

pv2current

  • PV2 input current (0.1A)

pv2voltage

  • PV2 voltage (0.1V)

pvpowerin

  • Actual input power (0.1W)

pvpowerout

  • Actual output power (0.1W)

pvfrequentie

  • Grid frequency (0.01Hz)

pvgridvoltage

  • single phase grid voltage (0.1V) (or phase 1)

pvgridcurrent

  • single phase grid current (0.1A) (or phase 1)

pvgridpower

  • single phase grid voltage (0.1w) (or phase 1)

pvgridvoltage2

  • phase 2 grid voltage (0.1V)

pvgridcurrent2

  • phase 2 grid current (0.1A)

pvgridpower2

  • phase 2 grid voltage (0.1w)

pvgridvoltage3

  • phase 3 grid voltage (0.1V)

pvgridcurrent3

  • phase 3 grid current (0.1A)

pvgridpower3

  • phase 3 grid voltage (0.1w)

pvenergytoday

  • Today generated energy (0.1KWH)

pvenergytotal

  • Total generated energy (0.1KWH)

epv1today

  • Today generated energy by PV string 1 (0.1KWH)

epv1total

  • Total generated energy by PV string 1 (0.1KWH)

epv2today

  • Today generated energy by PV string 2 (0.1KWH)

epv2total

  • Total generated energy by PV string 2 (0.1KWH)

epvtotal

  • Total generated energy by all PV strings (0.1KWH)

pvtemperature

  • Inverter temperature (0.1C)

pvipmtemperature

  • The inside IPM in inverter temperature (0.1C), be aware not available in all inverters!

totworktime (0.5s)

  • total time that inverter has been active epv1today : 9.0 epv1total : 4545.3 epv2today : 0.0 epv2total : 0.0 epvtotal : 4545.3