Dummy Motion Sensor Actions not working Topic is solved

Moderator: leecollings

Post Reply
Jemand
Posts: 20
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dummy Motion Sensor Actions not working

Post by Jemand »

Hi

I have a dummy motion sensor which is controller through the api. This works but if I set the motion sensor to "on" the on-Action is not triggered. The motion sensor show the motion symbol in the overview but the acition url is not getting called. The same for the "off" action.

This is how I set it active of not active: .../json.htm?type=command&param=udevice&nvalue=1&idx=9043 // or $nvalue=0 for inactive.

Is this not gonna work through the api?
Jemand
Posts: 20
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dummy Motion Sensor Actions not working

Post by Jemand »

Okay, I found the solution. I have to use this api command:
For on:
.../json.htm?type=command&param=switchlight&idx=9043&switchcmd=On
For off:
.../json.htm?type=command&param=switchlight&idx=9043&switchcmd=Off
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest