Page 1 of 1

How to use a Push On Button on creation

Posted: Sunday 25 January 2026 20:28
by madpatrick
Hi,

Is it possible to create a Push On Button in a python script ?
2026-01-25 20_26_00-Dzvents scripts - Verkenner.png
2026-01-25 20_26_00-Dzvents scripts - Verkenner.png (20.91 KiB) Viewed 31 times
I want use a Push On instead of a switch

Code: Select all

            if 6 not in Devices:
                Domoticz.Device(Name="Load Start URL", Unit=6, TypeName="Switch").Create()

Re: How to use a Push On Button on creation

Posted: Monday 26 January 2026 12:38
by madpatrick
Found it

Code: Select all

Domoticz.Device(Name="Load Start URL", Unit=6, Type=244,Switchtype = 9, Subtype = 73, Used=1).Create()