Open Dark1886 opened 1 month ago
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
?
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.
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.
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.