JSON command to activate a push button

Moderator: leecollings

Post Reply
gschmidt
Posts: 200
Joined: Thursday 20 December 2018 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

JSON command to activate a push button

Post by gschmidt »

Hi I want to send a JSON string to the domoticz/in topic, to activate a Push On button in domoticz:
I have tried JSON below (works for an On/Off switch), but there is no respond

Code: Select all

{
"idx": 535,
"nvalue": 1,
}
User avatar
FireWizard
Posts: 1967
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: JSON command to activate a push button

Post by FireWizard »

Hi, @gschmidt

Try this code:

Code: Select all

{
"command": "switchlight",
"idx": 535,
"switchcmd": "On"
}
Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest