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()
plugin question
Moderator: leecollings
-
- Posts: 331
- Joined: Wednesday 21 December 2016 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: current
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest