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¶m=udevice&nvalue=1&idx=9043 // or $nvalue=0 for inactive.
Is this not gonna work through the api?
Dummy Motion Sensor Actions not working Topic is solved
Moderator: leecollings
-
- Posts: 20
- Joined: Saturday 11 May 2019 12:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dummy Motion Sensor Actions not working
Okay, I found the solution. I have to use this api command:
For on:
.../json.htm?type=command¶m=switchlight&idx=9043&switchcmd=On
For off:
.../json.htm?type=command¶m=switchlight&idx=9043&switchcmd=Off
For on:
.../json.htm?type=command¶m=switchlight&idx=9043&switchcmd=On
For off:
.../json.htm?type=command¶m=switchlight&idx=9043&switchcmd=Off
Who is online
Users browsing this forum: No registered users and 1 guest