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

MotionSensor not working #50

Open
dcaccount opened this issue May 24, 2018 · 6 comments
Open

MotionSensor not working #50

dcaccount opened this issue May 24, 2018 · 6 comments

Comments

@dcaccount
Copy link

Hello,
I have tried to configure an input pin as MotionSensor. My config.json file looks like:

{ "type":"MotionSensor", "name" : "Input 1 - BCM 26", "pin" : 26, "enabled" : "true", "mode" : "in", "pull" : "off" }

Unfortunately it is always seen by HomeKit as contact sensor and not as motion sensor.

What am I doing wrong? How can I achieve this?

Please advise.
Thanks,
dan

@rsg98
Copy link
Owner

rsg98 commented May 25, 2018 via email

@dcaccount
Copy link
Author

Thanks for replying.

I will wait for final tests!

Dan

@dcaccount
Copy link
Author

Hello,
When do you expect to publish lastest changes?

Ps, thanks for your great work!
Dan

@rsg98
Copy link
Owner

rsg98 commented Jun 19, 2018

Latest version published as beta on npm now...

npm i homebridge-gpio-wpi2@beta

Should get it installed for you. Apologies - I have very little time at the moment, so progress is slow. If people can confirm it's working for them, I'll move it from beta to latest.

@francescopetrungaro
Copy link

Hi @rsg98
I have the same issue. I did try the latest changes (beta) but the only difference is that by default the sensor is now closed instead of open, but the type is still Contact Sensor even if the config file says "MotionSensor".
Motion Sensor type does not show in the list of available type, see attached screenshot.
img_8b85dcf693e2-1

Thanks in advance for your help

@francescopetrungaro
Copy link

Update...

  • removed old lib
  • removed all sensors from config.json
  • restarted
  • re-added back all sensors changing pins
  • cleared cache
  • restarted
  • Motion Sensor detected

ALL WORKING!!!

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

3 participants