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

Timer #14

Closed
Triyono123 opened this issue Oct 27, 2021 · 4 comments
Closed

Timer #14

Triyono123 opened this issue Oct 27, 2021 · 4 comments

Comments

@Triyono123
Copy link

Is there any way we could send timer command to the device? for example like, we want the device to be ON 5 minutes from now, and then OFF 10 minutes from now.
Please advice.

@dewhurstwill
Copy link
Contributor

I will look at adding this functionality to the library

@dewhurstwill
Copy link
Contributor

Feature PR added - Pending review

@dickydoouk

@dickydoouk
Copy link
Owner

@Triyono123 This can be done currently yourself wrapping the turnOn call or turnOff call in a setTimeout call e.g.

setTimeout(() => turnOn(), 5000)

@dickydoouk
Copy link
Owner

In the future I am hoping we can reverse engineer the scheduling api the smart plug uses the way the official Tapo app sets timers and schedules.

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

3 participants