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

Set GPIO pin state when initialising #50

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Mustard
Copy link

@Mustard Mustard commented Feb 7, 2022

Hi,

I'm using the invert_relay: true option as my relay module needs to be pulled down to ground to turn on

Currently the GPIO output is set some time after it is initialised, this meant on restart (say a power loss etc) the relay would briefly toggle resulting in the garage door opening.

This is a small change to set the state when the initialising the GPIO pin, I also added hardware pull ups in my case

I have some other changes locally, upgrading to python3 etc, would you be interesting in accepting those later?

Cheers,
Dan

…switch change when using inverted_relay state
@Mustard
Copy link
Author

Mustard commented Feb 7, 2022

Ah, seems I have independently discovered #44

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

Successfully merging this pull request may close these issues.

2 participants