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 #90

Closed
Silther opened this issue Nov 17, 2023 · 3 comments · Fixed by #114
Closed

Timer #90

Silther opened this issue Nov 17, 2023 · 3 comments · Fixed by #114
Labels
enhancement New feature or request

Comments

@Silther
Copy link
Contributor

Silther commented Nov 17, 2023

The dyson app allows you to set a timer to switch off the fan after the specified time, could that be implemented?

@dotvezz dotvezz added the enhancement New feature or request label Nov 26, 2023
@dotvezz
Copy link
Member

dotvezz commented Nov 26, 2023

Hmmm, maybe! I've been a bit bogged down with life, but investigating a good way to do this sounds fun. Will follow up when I have more info.

@bdovaz
Copy link

bdovaz commented Dec 5, 2023

But isn't it already done @dotvezz? Or have I misunderstood?

EDIT: I see that there is a Python library (really old) that implements timer functionality: https://github.com/CharlesBlonde/libpurecoollink

@codyc1515
Copy link
Contributor

Looks like the relevant methods are:

  • _device.sleep_timer to get numeric value
  • _device.set_sleep_timer to set timer & input numeric value between 1 & 540 inclusive
  • _device.disable_sleep_timer to disable timer

I will take a look at this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants