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

Question/Request: Ability to send multiple keys through a single MQTT message? #1

Open
Dark1886 opened this issue Jul 30, 2024 · 3 comments

Comments

@Dark1886
Copy link

I don't THINK this is available at the moment, but it would be nice to be able to send a command like "CTRL + ALT + DEL" or "CTRL+Tab" or other hotkeys from a single message without needing to make core software updates for every combination.

@KlausMu
Copy link
Owner

KlausMu commented Jul 30, 2024

Correct, currently not possible.
If you need a specific key combination, you can extend the code and do it like in void keyboard_home(). You would also need a new MQTT topic to subscribe to.

For a generic solution, a list of keys as payload in the MQTT message would be necessary. But you had to send the hex values for the special keys. Wouldn't be straightforward ...

Are you using the MQTT keyboard for controlling a media device, as used with https://github.com/CoretechR/OMOTE/?
This was the main purpose of this project. Hence all MQTT topics in keyboard.h are aimed to that goal.

Which media device needs CTRL+ALT+DEL or CTRL+Tab?

@Dark1886
Copy link
Author

This isn't specifically for a media device for the Omote library. I'm looking to plug this directly into my desktop. i've been doing a lot of gamestreaming to remote devices lately and once in a while you can get in a case where you need keyboard access. I was looking to add keys to home assistant for some specific commands.

I tried to use a HASS agent for mqtt connection as a software solution but it seemed to be unreliable from my experience.

@KlausMu
Copy link
Owner

KlausMu commented Jul 30, 2024

Ok. To see if the MQTT keyboard in this project is reliable enough, you could extend the needed keyboard combinations as described above.
A generic solution could be added later, if this concept has proven reliable for your use case.

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

2 participants