-
Notifications
You must be signed in to change notification settings - Fork 113
MQTT
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 message data is created (from data record) or if not available when MQTT message is sent (Server GMT time).
- Growatt inverter id
- shows if value is from buffer (shine device will buffer data if no connection with growatt server) or actual
- Serial number growatt device
- Time (yyyy-mm-ddThh.mm.ss)
- Inverter run state:
0:waiting, 1:normal, 2:fault
- PV1 input watt (0.1W)
- PV1 voltage (0.1V)
- PV1 input current (0.1A)
- PV2 input watt (0.1W)
- PV2 input current (0.1A)
- PV2 voltage (0.1V)
- Actual input power (0.1W)
- Actual output power (0.1W)
- Grid frequency (0.01Hz)
- single phase grid voltage (0.1V) (or phase 1)
- single phase grid current (0.1A) (or phase 1)
- single phase grid voltage (0.1w) (or phase 1)
- phase 2 grid voltage (0.1V)
- phase 2 grid current (0.1A)
- phase 2 grid voltage (0.1w)
- phase 3 grid voltage (0.1V)
- phase 3 grid current (0.1A)
- phase 3 grid voltage (0.1w)
- Today generated energy (0.1KWH)
- Total generated energy (0.1KWH)
- Today generated energy by PV string 1 (0.1KWH)
- Total generated energy by PV string 1 (0.1KWH)
- Today generated energy by PV string 2 (0.1KWH)
- Total generated energy by PV string 2 (0.1KWH)
- Total generated energy by all PV strings (0.1KWH)
- Inverter temperature (0.1C)
- The inside IPM in inverter temperature (0.1C), be aware not available in all inverters!
- total time that inverter has been active epv1today : 9.0 epv1total : 4545.3 epv2today : 0.0 epv2total : 0.0 epvtotal : 4545.3