esphome-blekeyboard icon indicating copy to clipboard operation
esphome-blekeyboard copied to clipboard

Send keyboard power key

Open Dasisfakt opened this issue 2 years ago • 5 comments

Good afternoon. There is an Xiaomi mi box S console, but I can't turn it off or on in any way. Which activation key can I use?

Dasisfakt avatar Dec 12 '22 18:12 Dasisfakt

Good afternoon. There is an Xiaomi mi box S console, but I can't turn it off or on in any way. Which activation key can I use?

I use key code 0xEB to wake up Xiaomi mi box S and Xiaomi mi stick

honeyjohney avatar Dec 18 '22 21:12 honeyjohney

Hello, First of all, thank you for your work and for sharing it with the community. I have an Android box from my ISP. I am also trying to turn it on with your software, unfortunately the solution proposed above does not work for me.

I have installed this software on my ESP32 card: https://github.com/fsievers22/esphome-ble-remote and paired it with my remote control and it returns the Power, Media Select Cable (for the TV source), etc. commands.

I find these codes in the linux input event code ( 116 for Power, 0x17a for Media Select Cable...) : https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h

Is it possible to send this kind of code with your software?

Thanks in advance.

macfly92 avatar Feb 10 '23 13:02 macfly92

I've been trying to find codes for the Power/Sleep/Wake buttons but could not. The codes that I have found were something else and did not do anything (or did something else) in my case. Is there a full reference of the key codes that can be used via this component?

muxa avatar Feb 24 '23 03:02 muxa

I think only key codes can be found here: https://github.com/dmamontov/esphome-blekeyboard/wiki/Keys

macfly92 avatar Feb 24 '23 17:02 macfly92

@macfly92 yes, those are the documented keys and they don't include all the keys that a keyboard can send I believe.

muxa avatar Feb 24 '23 19:02 muxa