plugin question

Python and python framework

Moderator: leecollings

Post Reply
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

plugin question

Post by blauwebuis »

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()
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest