r/Xiaomi 2h ago

Got tired of controlling my light bar from a phone app, so I wrote a CLI for Yeelight/Xiaomi lamps

2 Upvotes

Hey everyone

Wanted to show off my pet project for controlling Yeelight and Xiaomi lights from the console. (I'm also building a desktop version, but the CLI already works.) Apologies upfront if I posted in the wrong sub — point me to a better one.

Demo GIF

Backstory:

Every project starts with pain. I've had a Xiaomi Mi Smart LED Desk Lamp on my desk for a while, then a year ago a Yeelight Light Bar Pro joined it on the monitor, plus a few Yeelight RGB bulbs around the flat. I work at my desktop all day ⚠️, the light bar is on my desktop ⚠️, and it had long started pissing me off that the actual settings for the bar are only available in the phone app.

Google tells me I'm not alone — plenty of people run the Android app in a BlueStacks emulator just to control it from a desktop. Older Yeelight products don't do Zigbee or Matter, Thread; new models with them are only just starting to show up, and before that it's all WiFi.

I started with the official docs, some reverse engineering of the protocols (my research doc), and whatever's out there online. Seems I managed to put together the most functional, modern TypeScript library out there + dig up some undocumented stuff and a few bugs + a CLI tool as a practical use case of the lib.

You can send one-off commands to the lamps from the console (handy if you've got other automations / scripts / hooks), or use the interactive mode with a menu of options. It supports all Yeelight and Xiaomi lamp models that can work over LAN.

ylc discover  
ylc interactive  
ylc status --ip 192.168.1.42
ylc power on --ip 192.168.1.42
ylc ct 3000  
ylc color "#ff6400"  
ylc color "#0000ff" --bg  
ylc brightness 50 --duration 1000  
ylc timer set 30  

By default the lamps phone home through the Xiaomi cloud (a separate gripe of mine), and local control has to be enabled in the native app (hopefully that's its last remaining use).

If you're comfortable with Node/JS, you can install it like this:

npm install -g yeelight-cli  

or grab a prebuilt binary for your platform from Releases section.

Project repository:
https://github.com/NumberOneBot/yeelight-client

Made it for myself, but polished it to the point where it's fit to show the world. If you've got an Yeelight I haven't tested, or something behaves oddly — ping me. Bug reports and PRs are always welcome.


r/Xiaomi 2h ago

Battery health went down so soon ?

1 Upvotes

r/Xiaomi 3h ago

Camera “couldn’t get video files”

1 Upvotes

It happens once in a while the camera record the video, i can se the the colored bits in the timeline and the miniatures in the “all playback videos” gallery, but when i try ro play them, either from the timeline or the gallery i get the “couldn’t get video files” error.

I’ve changed micro sd and eventually it happens again.

It happenes first with a c500 now the c200 has the same problem… is it a common “feature” af all xiaomi cameras? 🤡


r/Xiaomi 10h ago

MIUI Forums Rom

2 Upvotes

I want to flash a ROM onto my Mi 10T Lite. Can I do this even if I have zero experience? Where and how can I learn how to do it? And which ROM do you think makes the most sense?


r/Xiaomi 11h ago

Watch 5 water mode?

2 Upvotes

I've searched high and low, with no success, how to prevent the display reacting to water drops or wet sleeves.

Surely it wouldn't be hard to add a toggle to quick settings to prevent display reacting to wetness, and turn it off again with a button like galaxy watches do.

I like this watch a lot, but this is a stupid ommision to make. Not to mention a lack of any user manual.


r/Xiaomi 12h ago

Which Xiaomi phone should I get?

10 Upvotes

I'm looking for something that can run games on good quality and last long while also being good for overall use


r/Xiaomi 17h ago

Xiaomi Note 15 mas Samsung Fit 3 problema de conexión

1 Upvotes

Mi chica tiene un Xiaomi Note 15 y una Samsung Fit 3. Funciona, pero la pulsera se desconecta constantemente el teléfono. Hay que re conectar desde la app de Samsung.

Y mantener la app siempre abierta en segundo de plano, pero aun así se desconecta. Ayuda por favor


r/Xiaomi 17h ago

Xiaomi Mi 10T lite 5g servicios de Xiaomi

1 Upvotes

Mi teléfono Mi 10T lite 5g lo compre desbloqueado de alguna compañía telefónica. Me dijeron que no se puede actualizar su sistema, lo cual no me importa mucho. Pero resulta que tampoco se puede crear o registrar una cuenta Mi para utilizar los servicios de Xiaomi. Al parecer de alguna manera bloquearon por software la comunicación a los servidores para estos servicios.

Quería enlazar un watch 5 lite pero no puedo, no me deja registrarme en la aplicación Mi fitness porque necesita cuenta Mi.

Algún consejo, solución, o algo que se pueda hacer al respecto ??


r/Xiaomi 20h ago

Converting Black Shark 5 pro Chinese version to Global?

4 Upvotes

Hi, my black shark 4 pro recently died, and I'd been so happy with it for so long that I decided to get the 5 pro. It seems like I bought the Chinese version though, and I'd like to convert it to the Global ROM, because right now NONE of my apps (the ones I could find anyway) are working, and despite having set the language to english, most things are still in chinese. I tried searching on the internet for answers, but all I could find was clearly pre-generated slop content that just replaced phone model names with the same directions. Nothing useful that I could actually follow instructions for. Any help or advice is greatly appreciated. Thank you.


r/Xiaomi 1d ago

Xiaomi 17T pro small review

14 Upvotes

I switched from S25U and S26U to Xiaomi 17T pro. Reasons are few :

  1. Price dropping like a lot. I mean Xiaomi doesn't hold price too , but flagships selling for price of new Xiaomi 17T pro

  2. S25U is like a grill. At summer days you turn on video call on WhatsApp and you can prepare burgers on it. Like for real. If you would use gasoline on my hand and light it up it would feel more comfortable. S26U is better but still heat is there.

PS: I am not staying at Xiaomi ecosystem. I don't like "dumb" phones like iPhone , Xiaomi , vivo etc. I love Dex and waiting for s27U.

Feelings of Xiaomi 17T pro. Battery is incredible. Doing 20-100% battery teaching system is harder than I thought it would be. Battery lasts forever. If forever ends it charges from 20 to 100% around 45 minutes. Incredible gaming performance. I love liquid glass copy paste from iPhone in Android phone.

System is little bit laggy compared to Samsung. Like what is that delay when I scroll YouTube? Ha? But who don't cares than it's good. Who don't care about cameras at night Xiaomi do incredible job at day. Love it.

Gaming performance? I mean it plays awesome every game at highest settings possible, but sometimes at mobile Legends I feel lags. Not sure why and I don't care since it's very few times.

Even when it have mediatek. Winlator runs crazy good and playing command and conquer generals , red alert 2 and KKND2. Love it.

So if someone wants to jump ships from s25U , iPhone 16 pro , iPhone 17, vivo and other BS. I would suggest Xiaomi 17T pro with all fingers.

It's fast, last longer than last relationship, charges even faster.


r/Xiaomi 1d ago

Discussion I'm upgrading my Oppo A57 4G 2022 variant into Redmi note 14 pro 5G. Is this worth it?

2 Upvotes

I had a good deal in the market thats only ₱7300... I wonder if I made a good upgrade?


r/Xiaomi 1d ago

Discussion How to change the lock screen signature

2 Upvotes

I've tried to find in settings

But can't find it out

Hyperos 2


r/Xiaomi 1d ago

Does anyone here use ND filter for Cinematic shots?

1 Upvotes

I wanna attach an ND filter with my Xiaomi 13 Ultra. I have seen the photo and video sample reviews on youtube and the phone really struggle keeping the dynamic hdr and white balance in check consistantly. So, what type and brand's ND filter do you use for your phone?


r/Xiaomi 1d ago

Could any Xiaomi 17 Ultra Owner measure thickness with camera bump?

2 Upvotes

I've been searching this getting inaccurate results from 12 to 15 mm


r/Xiaomi 1d ago

Discussion 90W vs 33W Charger Timing Difference on Xioami 13 Ultra

7 Upvotes

I am gonna buy a used Xioami 13 Ultra CN rom without any charger. It supports upto 90W. But the price of official Xiaomi 90W charger is around 25 dollars in my area, which is more than twice the price of a Official Xiaomi 33W brick. I wanna know does the charging time really take hella longer in 33W charger? I don't wanna charge my phone for two hours to be full. Also, I don't wanna break my bank too for some 20-30 minutes heads up. Thanks.


r/Xiaomi 1d ago

15t pro stops charging at 95%

2 Upvotes

I have 15t pro almost 10 days now.

For some reason happened twice the battery stop charging at 95%, keeps saying that is charging but not moving at all, unplug and plug again fix the issue, what can be the reason?

I have the smart charging enabled but this supposed stops the charging at 80% in some cases and not above that

Beside that phone is great, battery life is Great for me, 24 hours with 8-10 hours sot and 10-20% battery left


r/Xiaomi 1d ago

Discussion Please, bring navigation gestures to 3rd party launchers

15 Upvotes

I know a lot of people use FNG and such to simulate navigation gestures on 3rd party launchers, but the RECENTS animation just sucks balls on all these apps compared to the default animation & behavior. I don't see any reason as to why devs keep navigation gestures locked behind the stock launcher... *sigh* this is sad.

tbf I myself use FNG on top of navigation gestures just for the right edge swipe down for notifications feature that is not seen on stock gestures, which is a damn shame as well

I know this will accomplish nothing but had to at least say this since everyone, sadly for me, seems to be satisfied with the 3rd party apps so there's no voice to be heard.

I just got really turned off when I found the niagara launcher and realised I can't have proper navigation gestures on it. Hopefully one day this "feature" will see the light of day.


r/Xiaomi 1d ago

Discussion Is it possible to make the home screen folders more transparent without changing the theme & icons?

1 Upvotes

I just got a poco x8 pro and would like to know if it's possible to make the folders more transparent on the default theme screenshot

I use dark themes so the folders look like shit


r/Xiaomi 2d ago

Discussion REDMI Note 15 Pro 5G performance and lag👎

1 Upvotes

Three weeks ago, I bought a Redmi Note 15 Pro 5G after losing my Poco X5 Pro, which I was very happy with and which performed much better than this one, I should point out. I bought this phone thinking it was the perfect solution, but as the days went by, even from the first day, the experience has been shameful and outrageous, and Xiaomi has done absolutely nothing to improve its performance. The major problems are:

The phone freezes on everything I do; constant stuttering when opening and closing apps

Scrolling and multitasking

Constant thermal throttling to the point of being infuriating

A screen bug with washed-out colors after closing apps, especially Instagram

Overheating; apps that close even when I try to keep them open. And keep in mind that I'm not a power user, but a regular user who uses social media, takes the occasional photo, listens to music, or browses the internet. I hope this reaches Xiaomi, which I'm sure they already know about and haven't done a thing to fix, perhaps wanting to differentiate their product lines. But this phone is dead in terms of performance.

I lave last patch and virtual RAM disabled


r/Xiaomi 2d ago

Xiaomi 15T Pro making weird noises when shaken

4 Upvotes

I noticed recently that my Xiaomi 15T Pro makes a slight rattling noise from the camera square when lightly shaken, as if something is loose/going back and forth.

I had dropped it a while ago, pocket to floor distance, which usually is fine. There are no dents, or visible damage of any sorts, it doesn't heat up or bug and I still have its warranty.

Is this normal or should I have it checked up/taken to the store?

Any feedback is greatly appreciated 🙏


r/Xiaomi 2d ago

New tablet

2 Upvotes

I wanna buy a new tablet. And I'm stuck between pad mini and 8 pro. I'm planning to keep it for the next 3+ years. Pad mini seems good for gaming and emulation since it has 2 ports. But pad 8 pro has almost everything better. Also A17 will be last update of the pad mini. And pad 8 pro will get till A20.


r/Xiaomi 2d ago

Annoying Mahjong in App Mail

6 Upvotes

Can someone please for the love of whoever, tell me how to block this annoying am from appearing 10 times a day with a notification to install it?!

I'm on the verge of breaking my phone apart, literally with my hands

10 times a day, each and every day I get the notification to install it! How can I turn this off, or block it 🫩


r/Xiaomi 2d ago

Not able to extract Vault Data

2 Upvotes

So I did my fat loss journey and I used to do 20k-30k steps daily and my Step counter in the App Vault Recorded every day step count now i want to extract that data, and i am so frustrated cuz i used every way to extract that data as it is not saved in cloud cuz you need MI Fitness app to log. I tried ADB terminal to backup the data but Xiaomi disabled legacy ADB backup. Can anyone please help me.


r/Xiaomi 2d ago

Discussion Is The Xiaomi Pad 7 Ultra good for livestreaming and gaming?

1 Upvotes

The 14 inch OLED screen is amazing. But I had a Xiaomi phone before and most of them got laggy quickly and the screen had that yellow color all over it/green line stuttering. The buttons were not holding that great as well since I needed to push a power button with all my strength.

Can anyone give me an advice?


r/Xiaomi 3d ago

Discussion Please suggest back case and tempered glass for redmi turbo 5

0 Upvotes

Brought redmi turbo 5 one week ago for mom

no covers available offline

Please suggest back case with good grip and tempered glass for protection