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

Send keyboard power key #16

Open
Dasisfakt opened this issue Dec 12, 2022 · 5 comments
Open

Send keyboard power key #16

Dasisfakt opened this issue Dec 12, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@Dasisfakt
Copy link

Dasisfakt commented Dec 12, 2022

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 Dasisfakt added the enhancement New feature or request label Dec 12, 2022
@honeyjohney
Copy link

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

@macfly92
Copy link

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.

@muxa
Copy link

muxa commented Feb 24, 2023

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?

@macfly92
Copy link

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

@muxa
Copy link

muxa commented Feb 24, 2023

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

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

5 participants