MQTT energy meter data from Tasmota to Domoticz
Posted: Tuesday 23 March 2021 23:27
Hi Forum,
Got stuck with this one, so probably took a wrong turn somewhere. Any suggestion would be welcome!
I have used the 'Tasmota Smart Meter Interface' to connect it to a 3 phase Modbus energy meter. This works, in Tasmota I can see the meter readings I requested (Energy [kWh], 3 x Power [W], and 3 x Voltage [V]; the meter offers others as well if needed).
I have also installed Mosquitto MQTT, which also works. Using an MQTT monitor I can see Tasmota publishing its messages.
Next is the part I'm stuck with:
In Tasmota you can 'Configure Domoticz'. Create a dummy device in Domoticz, and enter the corresponding IDX in Tasmota.
Example: create dummy voltage device (idx=557), then set in Tasmota 'Sensor idx 7 Voltage/PM2.5' to 557. As a result, new MQTT messages get published:
domoticz/in {"idx":557,"nvalue":0,"svalue":"12.0","Battery":100,"RSSI":10}
The value 12.0 sent is power for phase 2 and not the voltage of any of the phases.
Secondly, a 'usage (electric)' dummy device (idx=560) is linked to Tasmota's 'Sensor idx4 Power,Energy' this results in more MQTT messages addressed to Domoticz:
domoticz/in {"idx":560,"nvalue":0,"svalue":"3;1813.2","Battery":100,"RSSI":10}
Here two values are sent across: the power from phase 1 (3W) and total energy (1813,2 kWh). The Domoticz UI shows the power and only the energy 'today', not the total.
Lastly, using another Domoticz dummy device and link that to 'sensor idx 8 Current/PM10 shows power for phase 3
I have not managed to get any of the three voltages across.
It seems there are some translations taking place, but not the correct ones.
How and where can I correct that?
Got stuck with this one, so probably took a wrong turn somewhere. Any suggestion would be welcome!
I have used the 'Tasmota Smart Meter Interface' to connect it to a 3 phase Modbus energy meter. This works, in Tasmota I can see the meter readings I requested (Energy [kWh], 3 x Power [W], and 3 x Voltage [V]; the meter offers others as well if needed).
I have also installed Mosquitto MQTT, which also works. Using an MQTT monitor I can see Tasmota publishing its messages.
Next is the part I'm stuck with:
In Tasmota you can 'Configure Domoticz'. Create a dummy device in Domoticz, and enter the corresponding IDX in Tasmota.
Example: create dummy voltage device (idx=557), then set in Tasmota 'Sensor idx 7 Voltage/PM2.5' to 557. As a result, new MQTT messages get published:
domoticz/in {"idx":557,"nvalue":0,"svalue":"12.0","Battery":100,"RSSI":10}
The value 12.0 sent is power for phase 2 and not the voltage of any of the phases.
Secondly, a 'usage (electric)' dummy device (idx=560) is linked to Tasmota's 'Sensor idx4 Power,Energy' this results in more MQTT messages addressed to Domoticz:
domoticz/in {"idx":560,"nvalue":0,"svalue":"3;1813.2","Battery":100,"RSSI":10}
Here two values are sent across: the power from phase 1 (3W) and total energy (1813,2 kWh). The Domoticz UI shows the power and only the energy 'today', not the total.
Lastly, using another Domoticz dummy device and link that to 'sensor idx 8 Current/PM10 shows power for phase 3
I have not managed to get any of the three voltages across.
It seems there are some translations taking place, but not the correct ones.
How and where can I correct that?