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

Feat: auto toggle night mode #42

Merged
merged 2 commits into from
Jun 30, 2018

Conversation

BasKiers
Copy link
Contributor

Depends on: #41

Added logic to automatically toggle nightmode when dimming the device to 100/0 percent twice in a row within 5 seconds. This is usefull when controlling the device from your mobile phone (using the new app) so you can toggle night_mode without executing a flow.

@BasKiers BasKiers force-pushed the feat/auto-toggle-night_mode branch from 45f9879 to 2189c42 Compare June 30, 2018 09:36
Added logic to automatically toggle nightmode when dimming the device to 100/0 percent twice in a row within 5 seconds. This is usefull when controlling the device from your mobile phone (using the new app) so you can toggle night_mode without executing a flow.
@BasKiers BasKiers force-pushed the feat/auto-toggle-night_mode branch from 2189c42 to ceee661 Compare June 30, 2018 09:54
Copy link
Collaborator

@jghaanstra jghaanstra left a comment

Choose a reason for hiding this comment

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

Interesting, I'm approving it but can this be tested using the current desktop interface? I own a ceiling4 which also has night_mode (I'll add that capability myself) and I'd like to see how it works.

And something else, should you not use .. && typeof opts.duration === undefined) to avoid a ReferenceError?

@jghaanstra jghaanstra merged commit c77745f into shaarkys:master Jun 30, 2018
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