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

Multiple pins for single accessory #31

Open
bmosley opened this issue Sep 4, 2017 · 3 comments
Open

Multiple pins for single accessory #31

bmosley opened this issue Sep 4, 2017 · 3 comments

Comments

@bmosley
Copy link

bmosley commented Sep 4, 2017

I want to control a fan that has 3 speed settings.

ie.
Pin #1 = Off
Pin #2 = low
Pin #3 = Med
Pin #4 = High

is there a way to create an accessory that can toggle multiple pins? using a fan accessory?

@rsg98
Copy link
Owner

rsg98 commented Sep 4, 2017

It can't do exactly what you're asking for - although much of the code could be reused, it would add a lot of complexity to the logic - so a separate plugin is probably easier. (It would need configuration for pulsing buttons vs holding high, as well as state logic for only allowing one to be on at a time)

It also depends on how your fan switch works. If it's a wireless controller, then rcswitch based plugins might be an option. If your switch is an analog circuit varying the power supplied to the fan, then when PWM support is working in this module, that might be an option.

@bmosley
Copy link
Author

bmosley commented Sep 4, 2017

Thanks! I may have to fork this and rewrite some of it to fit my situation. My fan is a bit simple and I’ve just wired the controller button leads directly out. My setup currently “works” but I have 4 accessories listed for 1 fan. If one is toggled, it still leaves the others on etc. kind of ugly at the moment. I’ll look into some of the other options you mentioned too.

For rcswitch, is there currently a gpio plug-in similar to this specifically? Thanks!

@rsg98
Copy link
Owner

rsg98 commented Sep 4, 2017

I've only played briefly with this, it's another thing on the TODO list!

https://www.npmjs.com/package/homebridge-rcswitch-gpiomem

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