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

Door accessory #2

Open
johandk89 opened this issue May 6, 2016 · 10 comments
Open

Door accessory #2

johandk89 opened this issue May 6, 2016 · 10 comments

Comments

@johandk89
Copy link

Hi are there any plans to support a Door accessory?
There is a different homebridge plugin that supports a HTTP Door accessory (https://github.com/EricConnerApps/homebridge-httpdoor) but that plugin does a POST request and it doesn't send the POST data in the body as required by Particle

@krvarma
Copy link
Owner

krvarma commented May 6, 2016

Yes, I am planning more accessories one by one. I will add Door and check in soon.

Cheers!

@johandk89
Copy link
Author

Cool thanks!

@johandk89 johandk89 reopened this Jun 13, 2016
@tmur11
Copy link

tmur11 commented Aug 25, 2016

@krvarma any update on implementing some new accessories?

@tmur11
Copy link

tmur11 commented Sep 2, 2016

@krvarma and @johandk89 I've successfully modified the plugin to support door sensors and am continuing to work to implement more. I'm extremely new to this, I'll try and maybe make a pull request? I've never done one before but perhaps @krvarma you could have a peek at my code at let me know what you think.

@Joead
Copy link

Joead commented Oct 18, 2016

@tmur11 I would also like to control a Particle connected door via this plugin. Would you mind sharing your code?

@tmur11
Copy link

tmur11 commented Jan 21, 2017

@Joead how do i got about doing so? you should going the https://homebridgeteam.slack.com/messages/homebridge-particle/ slack channel so we can chat.

@EdwardOliver
Copy link

I just joined Git Hub in order to learn more about this project. The plugin works great as is, but I would also like to add some additional sensors.

@cmegens
Copy link

cmegens commented Mar 24, 2017

Can I in any way help? I connected my rolling shutters to a particle photon (connected an additional remote to it). This has 3 options: open, close and stop. I added a semi-close option which stop closing after 7 seconds, leaving the shutters open slightly. I now connected this to home bridge which is great, but these 4 options show as 4 lights. I would really like to change this to a door construction, so can I help? I'll fiddle with the code anyway, but if somebody also has some work setup I'm happy to add.

@pedroserano
Copy link

Just submitted a pull request that I wrote, tested, and works to support PIR motion sensors. Will look at the door accessory (which would really be a contact sensor, right?)

@pedroserano
Copy link

pedroserano commented Dec 2, 2017

Oh also a couple things are needed in the particle .ino program:

AT THE TOP:

#define MOTION_PIN      A0

bool currentMotion = 0;
int motionvalue = 0;

And then in the loop function:

    motionvalue = analogRead(MOTION_PIN);
    if (motionvalue > 2000){ currentMotion = 1;}
    else if (motionvalue <2000){ currentMotion =0;}

    publish("Motion", currentMotion);

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

7 participants