-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received value is not valid. Returning "false" #9
Comments
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 ***@***.***> 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:
<title></title> <script type="text/javascript"> location.href = "Login.html"; </script>
[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! "accessories": [{ And get a new error: [Motion Sensor] HTTP successful response: <title>401 - Unauthorized</title>401 - Unauthorized[2018-7-26 16:09:14] [Motion Sensor] Received value is not valid. Returning "false" Tried also with json: "accessories": [{ 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 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 ***@***.***> 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:
<title>401 - Unauthorized</title>
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. 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
<title></title> <script type="text/javascript"> location.href = "Login.html"; </script>[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?
The text was updated successfully, but these errors were encountered: