How to use a Push On Button on creation

Python and python framework

Moderator: leecollings

Post Reply
User avatar
madpatrick
Posts: 758
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:

How to use a Push On Button on creation

Post 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 16 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()
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2025.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
madpatrick
Posts: 758
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:

Re: How to use a Push On Button on creation

Post by madpatrick »

Found it

Code: Select all

Domoticz.Device(Name="Load Start URL", Unit=6, Type=244,Switchtype = 9, Subtype = 73, Used=1).Create()
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2025.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest