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

Add support of manually turning on and off a switch #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grapeot
Copy link

@grapeot grapeot commented Dec 25, 2020

First thank you for the great repo. It helped me a lot in building an alexa-supported wireless security camera.

During the development, I found a useful scenario as a stateless operation. For example, I want my phone to pop up a IFTTT notification when I instruct Alexa to do so. However, "alexa turn on the camera" won't do anything if the device is already on. And memorizing the device's state is quite unpractical. So I manually turn off the device immediately after it executes the turning on callback. This makes "alexa turn on the camera" always work.

This works after some minor tweaks on the code. While I've tested on my device, also wanted to see whether this may benefit the upstream. That's why I sent out this PR. :)

Thanks again for this repo and hope this PR helps.

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.

None yet

1 participant