rsg98 / homebridge-gpio-wpi2

Homebridge Raspberry Pi GPIO Platform (API 2) Plugin - using WiringPi as a backend
48 stars 16 forks source link

MotionSensor not working #50

Open dcaccount opened 6 years ago

dcaccount commented 6 years ago

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 commented 6 years ago

That’s my fault - I haven’t published the latest changes in Git to NPM. I need to test and publish, but am severely limited for time at the moment.

If you pull the code directly from GitHub, the “type” config should work. On Thu, 24 May 2018 at 21:07, dcaccount notifications@github.com wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rsg98/homebridge-gpio-wpi2/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/ARe_tdOkVfaYEhpwkTwHgk8aa224MzSnks5t1xLqgaJpZM4UM5td .

dcaccount commented 6 years ago

Thanks for replying.

I will wait for final tests!

Dan

dcaccount commented 6 years ago

Hello, When do you expect to publish lastest changes?

Ps, thanks for your great work! Dan

rsg98 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Update...

ALL WORKING!!!