Code: Select all
OFF
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=0
ON
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=1
Moderator: leecollings
Code: Select all
OFF
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=0
ON
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=1
If you don't want to trigger the event system when sending this command you need to add
Code: Select all
&parsetrigger=false
Code: Select all
OFF
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=0&parsetrigger=false
ON
/json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=1&parsetrigger=false
Perfect it works, I wasn't aware of it thank you very muchwaaren wrote: ↑Tuesday 19 May 2020 14:45If you don't want to trigger the event system when sending this command you need to addSo the complete JSON's becomeCode: Select all
&parsetrigger=false
This option was added in version V4.11656 and since then the default behavior for calls with param=udevice changed.Code: Select all
OFF /json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=0&parsetrigger=false ON /json.htm?type=command¶m=udevice&idx=<IDX>&nvalue=1&parsetrigger=false
Does it work also for commands like&parsetrigger=false
Code: Select all
/json.htm?type=command¶m=switchlight&idx=<IDX>&switchcmd=Toggle
Nohestia wrote: ↑Wednesday 20 May 2020 22:32Does it work also for commands like&parsetrigger=falseCode: Select all
/json.htm?type=command¶m=switchlight&idx=<IDX>&switchcmd=Toggle
As already mentioned in the wiki:Hencor wrote: ↑Wednesday 16 February 2022 10:31 In my validation it turns out that &parsetrigger=false doesn't apply to the action set in the selector switch settings. Am I right or I'm doing something wrong?
My attempt: /json.htm?type=command¶m=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL&parsetrigger=false
So my goal is that the selector switch action is only triggered when the user push the button on the interface and not triggered when the status is changed via json. Is there another possiblity without dzvents scripting?
Users browsing this forum: No registered users and 0 guests