How to change AddDBLogEntry parameter on existing counters?
Posted: Wednesday 03 November 2021 21:40
I intend to add yesterdays data to the P1 smart meter counter via a bash script.
Problem is that I have to set the AddDBLogEntry parameter to true to do that.
According to the manual I have to do that via a python plugin, as follows:
But I think that line creates a new device (not a big problem, but how do I prevent creating this device over and over?), and I haven't got a clue what I have to fill in for Type and Subtype.
And what what would a minimum plugin look like that only contains the line above?
Ideal would be an easier way to set this AddDBLogEntry parameter...
Thanks in advance for any help.
Problem is that I have to set the AddDBLogEntry parameter to true to do that.
According to the manual I have to do that via a python plugin, as follows:
Code: Select all
Domoticz.Device(Name="MyCounter", Unit=1, Type=0xfa, Subtype=0x01, Options={"AddDBLogEntry" : "true").Create()
And what what would a minimum plugin look like that only contains the line above?
Ideal would be an easier way to set this AddDBLogEntry parameter...
Thanks in advance for any help.