Page 1 of 1

JSON command to activate a push button

Posted: Saturday 19 December 2020 14:17
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,
}

Re: JSON command to activate a push button

Posted: Saturday 19 December 2020 18:11
by FireWizard
Hi, @gschmidt

Try this code:

Code: Select all

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