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

Always set to off state when in pressMode. #1

Open
wants to merge 2 commits into
base: latest
Choose a base branch
from

Conversation

eiryu
Copy link

@eiryu eiryu commented Feb 10, 2022

No description provided.

@@ -88,7 +90,7 @@ export class Bot implements AccessoryPlugin {
})
.then(() => {
log.info("Done.");
this.switchOn = targetState;
this.switchOn = this.pressMode ? false : targetState;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamstamper
Copy link

Thanks for making this @eiryu and for making the repo @ewebdev ! Would there be any chance you accept this pull request because it will enable Switchbot bots to be in 'push' mode, toggling back to 'off' once pressed which is handy for some uses. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants