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

More keyboard shortcuts #37

Open
MaestroMagnifico opened this issue Mar 8, 2019 · 4 comments
Open

More keyboard shortcuts #37

MaestroMagnifico opened this issue Mar 8, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@MaestroMagnifico
Copy link

Hey. I have Elgato Stream Deck. It can launch keyboard shortcuts, so I can change colors of my bulb. But I can't turn it on/off and change brightness. Can you add shortcuts for that?

@samclane
Copy link
Owner

samclane commented Mar 9, 2019

I still need to add a GUI option to add "On/Off" and "Brightness" keybinds. However, if you want to get this functionality right-away, you can do the following:

  1. Add a keybind of your choice, with the desired Light/Group, Keys, and Shade (ignoring brightness)
  2. Open your config.ini file, which should be in the same folder as your .exe
  3. Look for the section titled [Keybinds]
  4. Find the keybind that you just added, for example if I added a keybind for "LeftCtrl+R" to turn my "Lamp" Red, the entry would look like this: lcontrol+r = Lamp:[65535, 65535, 65535, 3500]
  5. The 4 numbers in brackets are your color in HSBK form. This stands for "Hue, Saturation, Brightness, Kelvin". The key here is the 3rd number is brightness. The range for the values are [0, 65535]. If you wanted to half the brightness, you'd replace the line with lcontrol+r = Lamp:[65535, 65535, 32767, 3500]. To "turn off the light", you'd set the brightness to 0 like this: lcontrol+r = Lamp:[65535, 65535, 0, 3500].

Note: This last one will just set the brightness to 0, so the light won't be "off" strictly speaking. It will be completely dark, however.

@MaestroMagnifico
Copy link
Author

Thanks for temporary solution. I will check if the lamp heats up when brightness is set to 0. Still it's not convenient to change brightness like this. This way I will have to add at least 11 buttons on my Stream Deck that will change brightness from 0 to 100. It would be much better to have only 2 buttons that can change brightness by 5% up and down. Hope you will implement this in future.

Also, using keyboard shortcuts is not that great. One Stream Deck "screen" have 14 buttons. My plan was to fill one screen with different colors so I will have to use 14 keyboard shortcuts for that. And they can cross with other apps. Maybe it is possible to send a commant to your app by launching it with some parameters? Stream Deck can do that.

@samclane samclane added the enhancement New feature or request label Mar 17, 2019
@stale

This comment has been minimized.

@stale stale bot added the wontfix This will not be worked on label May 17, 2019
@stale

This comment has been minimized.

@stale stale bot closed this as completed May 24, 2019
@samclane samclane reopened this Jun 15, 2019
@samclane samclane removed the wontfix This will not be worked on label Jun 15, 2019
@samclane samclane self-assigned this Sep 1, 2019
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

No branches or pull requests

2 participants