I started already a topic on the ESPEasy forum in regards of the support for the POW R2 and this is implemented now.
But i run in some issues mainly related to Domoticz.
First as ESPEasy sends all 4 values to 1 IDX i had to split them up and thats perfectly working via:
Code: Select all
On POW_2_Sensors#POW_2_Voltage do
SendToHTTP 192.168.99.5,8080,/json.htm?type=command¶m=udevice&idx=93&nvalue=0&svalue=[POW_2_Sensors#POW_2_Voltage] //Send the Voltage data to Domoticz
SendToHTTP 192.168.99.5,8080,/json.htm?type=command¶m=udevice&idx=94&nvalue=0&svalue=[POW_2_Sensors#POW_2_Power] //Send the Watt data to Domoticz
SendToHTTP 192.168.99.5,8080,/json.htm?type=command¶m=udevice&idx=95&nvalue=0&svalue=[POW_2_Sensors#POW_2_Current] //Send the Amp data to Domoticz
SendToHTTP 192.168.99.5,8080,/json.htm?type=command¶m=udevice&idx=96&nvalue=0&svalue=[POW_2_Sensors#POW_2_Pulses] //Send the Usage data to Domoticz
endon
The tricky part comes for the pulse counter. As ESPEasy is using an rotating pulse counter that counts from 0 - 65535 and then restarts at 0 it seems Domoticz is not able to handle that. (As far as i could figure out 12530 pulses would be 1KW) https://github.com/letscontrolit/ESPEas ... SE7766.ino
Anybody a clue how to add this rotating pulse counter as power meter to Domoticz?