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

Allow to set relative brightness and relative color in mireds through… #1607

Merged
merged 1 commit into from Mar 5, 2019

Conversation

tsymbaliuk
Copy link

… command using +N and -N notation

It allows not to ask for current value of brightness and color temperature, but increase/decrease it relatively. So controller like arduino board with buttons and infinite knobs might be more dummy and more efficient (since communication is not bidirectional).

Backward compatibility is almost untouched (except rare cases when people used commands like "brightness +50" instead of "brightness 50").

Example of commands:
brightness +50 // increase brightness for 50 points
mired -10 // decrease color temperature for 10 mireds
mired 100 // set color temperature to 100 mireds

@xoseperez xoseperez merged commit dfef249 into xoseperez:dev Mar 5, 2019
@xoseperez
Copy link
Owner

Thank you!

@mcspr
Copy link
Collaborator

mcspr commented Oct 12, 2019

  • update 919ba26 includes the same change for MQTT and HTTP as well

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

3 participants