You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry for a not very technical issue, but from yesterday I'm struggling with setting up this thing and maybe the problem isn't with the code itself but with my configuration.
Please give me a clue how the config.json should look for the:
Gateway as a Light
Miija Magnet
I've tried to quest what parameters they require and even analyze the code but with no luck. I had issues like _device[name] is not a function or _device[name] not set...
It shows me now Contact Sensor, Light Sensor and Light Bulb in my Home App but it doesn't work at all. Whatever I change or do - it doesn't react.
I've marked in red squares the Mi hardware and in a blue my own. The differences in reading are horrendous when the Mi Gateway has been partly covered from the sun anyway.
Please give me an example.
Many thanks!
UPDATE 1
I found the first issues and solutions:
config.json
devices can be an empty array like this:
"devices": [
]
and it's totally fine!
in file kit/mijia/magnet.js on line 53 the correct code should be if (status == 'close') {
This fixes the issue with "always open" contact sensors
Now I want work out why I can read the LightBulb but can't set it up.
UPDATE 2
OK, I've found out what was wrong!
The key generated by the script was wrong cause for some unknown reason my password has been changed. Updating the password sort the issue with controlling the lightbulb!
I'll advise adding an error to the script if the "Invalid key" appears to double check the password as most likely it's wrong.
The last issue is that the reading from the gateway is few times too high.
Thanks!
The text was updated successfully, but these errors were encountered:
MrTomAsh
changed the title
Documentation isn't clear
Not very clear documentation + issues with magnet sensor + issues with gateway
Feb 23, 2018
MrTomAsh
changed the title
Not very clear documentation + issues with magnet sensor + issues with gateway
[SOLVED] Not very clear documentation + issues with magnet sensor + issues with gateway
Mar 6, 2018
Hi,
sorry for a not very technical issue, but from yesterday I'm struggling with setting up this thing and maybe the problem isn't with the code itself but with my configuration.
Please give me a clue how the config.json should look for the:
I've tried to quest what parameters they require and even analyze the code but with no luck. I had issues like _device[name] is not a function or _device[name] not set...
At the moment my config.json looks like that:
Homebridge gives me that error when loading:
NodeJS: 7.9.0
NPM: 5.6.0
homebridge-smartphone: 1.1.3
Homebridge: 0.4.33
It shows me now Contact Sensor, Light Sensor and Light Bulb in my Home App but it doesn't work at all. Whatever I change or do - it doesn't react.
I've marked in red squares the Mi hardware and in a blue my own. The differences in reading are horrendous when the Mi Gateway has been partly covered from the sun anyway.
Please give me an example.
Many thanks!
UPDATE 1
I found the first issues and solutions:
devices can be an empty array like this:
and it's totally fine!
if (status == 'close') {
This fixes the issue with "always open" contact sensors
Now I want work out why I can read the LightBulb but can't set it up.
UPDATE 2
OK, I've found out what was wrong!
The key generated by the script was wrong cause for some unknown reason my password has been changed. Updating the password sort the issue with controlling the lightbulb!
I'll advise adding an error to the script if the "Invalid key" appears to double check the password as most likely it's wrong.
The last issue is that the reading from the gateway is few times too high.
Thanks!
The text was updated successfully, but these errors were encountered: