Skip to content
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

Open
warcanoid opened this issue Jul 26, 2018 · 4 comments
Open

Received value is not valid. Returning "false" #9

warcanoid opened this issue Jul 26, 2018 · 4 comments

Comments

@warcanoid
Copy link

warcanoid commented Jul 26, 2018

[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? 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?

@lagunacomputer
Copy link
Owner

lagunacomputer commented Jul 26, 2018 via email

@warcanoid
Copy link
Author

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?

@lagunacomputer
Copy link
Owner

lagunacomputer commented Jul 26, 2018 via email

@warcanoid
Copy link
Author

warcanoid commented Jul 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants