plugin question
Posted: Tuesday 16 January 2018 15:16
I'm playing around with python plugins. I want to create a button in the interface that creates new switches.
Is this possible?
nextDevice = len(Devices) + 1
Domoticz.Device(Name="NEW 433 switch", Unit=nextDevice, TypeName="Switch", Image=9, Used=1).Create()
Is this possible?
nextDevice = len(Devices) + 1
Domoticz.Device(Name="NEW 433 switch", Unit=nextDevice, TypeName="Switch", Image=9, Used=1).Create()