I am trying to write a plugin for a nice multichannel electrical consumption device (legrand 412000) which acts as a webserver, and provides real-time AC current measures over 5 channels in JSON format.
I started from the examples from the "Developing a Python plugin" wiki page, but none seem to work on the current Domoticz version. I always have the following message:
All examples and the documentation as well define onMessage like this:'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
Code: Select all
def onMessage(Connection, Data):
Thanks