-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
[New Device Support]: Xiaomi Mi Sticks #117
Comments
Absolutely, I'd love to add these two! Since I don't own either of those devices, I will either need to purchase them, wait for someone to buy them for me off of my Amazon Wish List, or find someone who does own them who is willing to answer questions for me. You said that you own one of these devices, can I ask for your help? Please look at the following image: Test 1
Test 2
If you can do those things for me, that will go a long way, and it will save me time and money. Thanks! |
I done both tests: Test 1: Only "menu" and "back" key were working. Menu key opens list of application. Navigation keys were not working, same for the volume keys. Test 2:* With Android TV Remote selected navigation keys were working. "Menu" key again opened application list. Volume keys change the volume on the device itself. My physical remote changes volume on my external Logitech speakers via IR. But here the remote control itself sends the IR. Let me know what else can I do to help. |
@thehijacker Perfect! Thank you! I sincerely appreciate your willingness to help! The next step would be for you to follow the Device Interrogation for New Device Support instructions and post the results here for me. The response will be quite large, but that's what I'm looking for. Also, I'm curious if the instructions in that section are clear enough, or if adding some additional pictures or descriptions would help. As far as the volume control issue, there is nothing we can command Home Assistant do that would send the same IR signal that your Xiaomi remote control does. However, if you have control over your Logitech speaker system through Home Assistant in some way, you will be able to get the desired behavior by creating button overrides. Check out the relevant section in the Firemote FAQ. |
@thehijacker - Have you been able to take a look at this yet? |
Sorry about that. Totaly missed your reply. Here is the output from "adb shell dumpsys input" command. I hope it helps.
|
@thehijacker - Thanks! How do the buttons behave if you set the "Compatibility Mode" to event5? |
Not much is working. Navigation keys with OK are not working. Only that left menu button opens apps list. |
Hmmm... That's not the result I was hoping to hear. Bummer. If you choose "strong", does everything work but with a very slow response time? Do any of the other "event" numbers have a usable outcome? |
Strong option works but as written it is slower. I tried all other event options but could not get navigation keys working. |
Unfortunately this means that I will need to gather specific information from you for each key press, and this could mean a considerable amount of work ahead. If you're still up for it, I am too! If not, and you'd rather wait for me to raise the funds to buy one for myself, that's OK too. If you choose to continue, keep reading below. I see that you are interacting with ADB through the command prompt, so let's continue that way.
I'm hoping to see a report from you that looks something close to this (only your data output will differ slightly): LEFT
UP
RIGHT
etc. |
Hello, Got it. But under event5 I got no reply. I tried all event paths and only event4 showned following for all the keys.
This is how remote control looks like: |
Interesting. Those are the same as what Firemote already uses... and in your original post, there was no "event4". I think I know what is happening. First, press some navigation buttons on your physical remote control to make sure that your 4K stick is responding to the physical remote. Next, set the compatibility mode to event4, and check to see if your Firemote controls work or not. |
@thehijacker - Have you had a chance to try this yet? |
Does it work if you follow my instructions and DON'T select an Android Remote entity? |
Nope. It does not work without Android Remote entity. Also kids lost the remote and I wanted to switch using Firemote but none keys were working again. Something strange is happening. I will try to find more time to test. |
@thehijacker - I appreciate any testing that you are able to do. The behavior you describe does seem rather strange, so I would like to get to the bottom of why it is happening. It is also possible that this specific device behaves like the NVIDIA shield where the commands for navigation, home, back, and the app menu button will only work in the "strong" mode. I'm not convinced that's the case though, since their Mi Box product works well this way. I'm not ready to give up on this, if you are willing to continue to work with me on it. In the meantime, ABSOLUTELY use Firemote to control your device, and select an Android Remote Entity. Kids running off with remotes seems to be the number one answer when people ask "Why the heck would I need this card?" ...the 2nd and 3rd answers are "because I'm too lazy to reach for the remote / my phone is already in my hand" and for those with NVIDIA Shield devices, "the Find my remote feature is perfect!" I can help guide you through some testing steps if you'd like. We could meet up in a chat room too if our schedules permit, and collaborate in real time. |
@thehijacker - Have you been able to come up with any new information for me about this? |
Sorry about this. Could not find time and we are on vacation now. Will be back next week. We can do live chat over Telegram, Whatsapp, Skype, etc. to speed this up :) |
@thehijacker - Hello! I haven't forgotten about you! I want to get back to this issue if you still have some patience for me. We should schedule a remote session that would allow me to control your computer, and somehow also see what is happening on your TV/Xiaomi Stick through a webcam. We could also try a remote session with only a webcam aimed at your TV if you happen to have remote access for your Home Assistant enabled and you trust me enough to log into it. |
I would have pushed this further if I still used the 4K stick. Switched to new STB we are implementing at work for production use and stick is somewhere in drawer. Maybe we can do this once the tests are complete and I connect the stick again to TV. A months or so? I am suprised there are not many others with this devices. They are quite cheap and work great. |
@thehijacker - If you're not using it right now, would you consider mailing it to me? I would send it back when I'm done testing with it. It's OK if you'd rather wait, I just feel bad for taking so much time to get back to this. |
Where are you from? Europe? |
United States |
Shipping from EU to USA is higher then device itself. Maybe someone else has same model and will come forward. Or we can schedule online next week. I have some free days planned. |
@thehijacker ~ Do you use Discord? https://discord.gg/x265nrba |
I learned something recently after Amazon released their two newest Firesticks. I learned that sometimes, the "Strong Slow" is the only option when using ADB commands. The good news is that you've shown me that the Android TV Remote Integration works for the Xiaomi TV Stick 4K, so that's great! With that in mind, I've just released Firemote version v3.1.2b1 for you to download and test. I'd like for you to confirm some things for me:
Please let me know your findings as soon as you can. Thanks! |
v3.1.2b2 New Beta Testing Requested For: - German language support (#264) - App Launcher for Joyn (#234) Beta Testing Feedback Still Pending For: - Xiaomi TV Stick 4K (#117) - Stick uses new remote style XM1 w/Patchwall (#117) - App Launcher for YouTube ReVanced (#262) What's New: - Modified Visual Editor flow - Change in family requires enforces change in device - Null device name truncates options until supplied - Removed compatibility mode menu where un-needed - App launcher for Downloader
I published these changes to the official release version v3.1.2 today, and closed this issue. I'm hoping that I did this all correctly... It's hard to know for sure because I do not own this device, so please comment here if there is something wrong or anything additional that needs to be done, and I will take another look. Thank you! Enjoy! |
Discussed in #116
Originally posted by thehijacker May 23, 2023
Hello,
Can you also add the remote controls for the Xiaomi Mi Sticks. I have the 4K model, but it also exists HD version.
https://www.mi.com/global/product/xiaomi-tv-stick-4k/
https://www.mi.com/global/product/mi-tv-stick/
I think remote control is the same.
The text was updated successfully, but these errors were encountered: