-
Notifications
You must be signed in to change notification settings - Fork 2
10 MOSQUITTO
With the help of mosquitto you can share the inverterdata with Thingspeak, Home assistant, Domoticz, or other home automation systems. If you are not familiair with mosquitto, please google to find information about concepts such as broker, topic, etc.
You should enable mosquitto in the the mosquitto page. You do this by choosing one of the available mqtt formats. In the infopage you can check the state of mosquitto (should be connected).
If there is no connection, the ESP is trying to do this ever 30 seconds, you'l see the blue led blink 2 times. You should ensure that the broker exists, if not, disable MQTT.
The results of the pollings are sent in the chosen format. This is always a json format. For example if your chosen format is 1, the mosquitto message will have the form {"inv_serial" : "xxxxxxxxxxxx","idx" : xxx, "nvalue" : 0,"svalue" : "90;2975.00"} so it contains also the idx of the inverter. This idx is used by Domoticz to identify the device. Other formats are:
- format 2:{"inv_serial":"123456789012","temp":"12,3","p0":"123","p1":"123","p2":"123","p3":"123","energy":"345"}
- format 3: {"inv_serial":"408000158211","acv":226.2,"freq":50.0,"temp":18.0,"dcv":[36.8,37.0],"dcc":[4.3,3.0],"pwr":[123.4,123.5],"en":[174.35,178.44]}
- format 4: {"inv_serial":"408000158211","acv":226.2,"freq":50.0,"temp":18.0,"ch0":[dc-volt,dc-current,power,enenergy],"ch1":[37.0,3.0,123.5,178.44], totals[power, energy]}