• March 28, 2024, 12:27:13 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Is there some API to enable/disable the sensor?  (Read 18285 times)

wfiveash

  • Level 1 Member
  • *
  • Posts: 2
Is there some API to enable/disable the sensor?
« on: January 13, 2018, 09:55:10 AM »

I have several D-Link DCH-S150 WiFi motion detectors and I am now wondering if there is a way to programatically enable/disable the motion detection on these sensors?  What I want to be able to do is automatically enable the sensors when both my wife and I have left the house and disable them when either one of us is at home.  I think I can use the IFTTT app to indicate when we are home or not so I need a way to control the sensors via a program.
Logged

GreenBay42

  • Administrator
  • Level 11 Member
  • *
  • Posts: 2752
Re: Is there some API to enable/disable the sensor?
« Reply #1 on: April 18, 2018, 07:31:20 AM »

You will need an app that supports geofencing. Unfortunately the mydlink Home app does not. IFTTT app does so you should be able to send a turn on/off trigger based on your location.

https://www.howtogeek.com/221555/how-to-create-geographic-event-triggers-with-your-smartphone-and-ifttt/

https://forum.universal-devices.com/topic/20684-ifttt-and-geofencing/
Logged

GreenBay42

  • Administrator
  • Level 11 Member
  • *
  • Posts: 2752
Re: Is there some API to enable/disable the sensor?
« Reply #2 on: April 18, 2018, 08:13:20 AM »

I just tried the IFTTT app and for some reason the motion sensor is not an "action" option.  I see you can turn on/off smart plugs so I guess plug the motion detector in a smart plug and have the location trigger turn that on and off. The motion detector can only act as a trigger unfortunately.
Logged

wfiveash

  • Level 1 Member
  • *
  • Posts: 2
Re: Is there some API to enable/disable the sensor?
« Reply #3 on: November 19, 2019, 12:51:02 PM »

Anyone know if it's possible to enable/disable the motion detector via a URL like "http://192.168.1.xxx/motion.cgi?MotionDetectionEnable=0&ConfigReboot=No&user=admin&pwd=BErtIL1BOo2"  ?
Logged