Open warcanoid opened 6 years ago
Looks like your URL is incomplete
https://github.com/lagunacomputer/homebridge-MotionSensor/blob/master/sample-config.json
"url": "http://192.168.1.24", <—————-
Sent from my iPhone
On Jul 26, 2018, at 2:00 AM, warcanoid notifications@github.com wrote:
[2018-7-26 10:55:23] [Motion Sensor] Requesting motion on "http://192.168.1.24", method GET, timeout 3000 [2018-7-26 10:55:23] [Motion Sensor] HTTP successful response:
[2018-7-26 10:55:24] [Motion Sensor] Received value is not valid. Returning "false" What should i do? "accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24", "sendimmediately": "", }], With: "http_method": "GET" , I get only: [Motion Sensor] Received value is not valid. Returning "false" — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
First, thank you for help! I completed te url:
"accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24/motionEndpoint, "sendimmediately": "", "http_method": "GET" }],
And get a new error:
[Motion Sensor] HTTP successful response: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[2018-7-26 16:09:14] [Motion Sensor] Received value is not valid. Returning "false"
Tried also with json:
"accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24/motionEndpoint?json=true, "sendimmediately": "", "http_method": "GET" "json_response": "value" }],
And again new error:
[2018-7-26 16:12:58] [Motion Sensor] Requesting motion on "http://192.168.1.24/motionEndpoint?json=true", method GET, timeout 3000 [2018-7-26 16:12:58] [Motion Sensor] Error processing received information: Unexpected token < in JSON at position 0
What to do now?
Go back to my original code from nov 2016
https://github.com/lagunacomputer/homebridge-MotionSensor/commits/master
Sent from my iPhone
On Jul 26, 2018, at 7:18 AM, warcanoid notifications@github.com wrote:
First, thank you for help! I completed te url:
"accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24/motionEndpoint, "sendimmediately": "", "http_method": "GET" }],
And get a new error:
[Motion Sensor] HTTP successful response:
401 - Unauthorized 401 - Unauthorized
[2018-7-26 16:09:14] [Motion Sensor] Received value is not valid. Returning "false"
Tried also with json:
"accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24/motionEndpoint?json=true, "sendimmediately": "", "http_method": "GET" "json_response": "value" }],
And again new error:
[2018-7-26 16:12:58] [Motion Sensor] Requesting motion on "http://192.168.1.24/motionEndpoint?json=true", method GET, timeout 3000 [2018-7-26 16:12:58] [Motion Sensor] Error processing received information: Unexpected token < in JSON at position 0
What to do now?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I copy paste the old code in index.js and homebridge wont start now. Please help me! Your plugin is the only one that I think I am close to get it work.
Git clone do not work-token validation. Also can no more install your plugin.
What can I do? Please answer
[2018-7-26 10:55:23] [Motion Sensor] Requesting motion on "http://192.168.1.24", method GET, timeout 3000 [2018-7-26 10:55:23] [Motion Sensor] HTTP successful response:
[2018-7-26 10:55:24] [Motion Sensor] Received value is not valid. Returning "false"
What should i do? This is my json: "accessories": [{ "accessory": "Motion", "name": "a", "url": "http://192.168.1.24", "sendimmediately": "", "http_method": "GET" }],
The sensor is in home app, but no motion will be detected or send to home app. The motions sensor is ok his app d-link and also sending notifications. What is wrong?