Have a power meter pulse sensor and it counts perfect. Actually my light sensor is analog compared to the example that is digital, but the changes was easy to do.
The Ardruino is connected via USB to my Domoticz computer. The problem is that the wattMsg is not received but the other two kwhMsg and pcMsg are reveived. I have checked the DB that the counter is saved in the database.
I can use the kwhMsg i Domoticz but the wattMsg is just shown the first message sent but not continuously.
If I check the serial port it look likes this
$ sudo cat /dev/ttyACM-ElCounter
The Domoticz Node display look like below
Some stange things.
- The is looks that the only children (#1) inlcudes both data (watt and kwh)
- wattMsg have ID 0000000 and kwhMsg has ID 0000001
- During the debugging I have seen that the presentation() function is never called.
Any ideas? Where to start?