Simplifying Smart Lighting Control with Xiaomi Buttons

Hey everyone! I wanted to share a really cool setup I’ve been working on to control my Yeelight 650 ceiling light. I’ve been using two Xiaomi wireless buttons—one for me and one for my wife—and it’s been a game-changer for how we manage our lighting. Let me walk you through how I set this up and the benefits it’s brought to our home.

The Problem

Initially, I was using a bunch of separate automations to handle different lighting scenarios. This included toggling the light, switching between main and night modes, and controlling an RGB LED strip. With two buttons to manage, this quickly became overwhelming. I had so many automations that it was hard to keep track of everything, and I was spending way too much time tweaking things.

The Solution

I stumbled upon a fantastic blueprint that completely streamlined my setup. This blueprint allowed me to consolidate all my lighting controls into a single, easy-to-manage automation. Here’s what the blueprint does:

  • Single Press: Toggles the light on or off. If the light is on, it turns off; if it’s off, it turns on. Simple and effective!
  • Double Press: Switches between main light and night light modes. This is perfect for adjusting the ambiance depending on the time of day or mood.
  • Long Press: Triggers the RGB LED strip. This adds a whole new layer of customization to our lighting setup.

The Benefits

The best part of this setup is how much simpler it made everything. I went from having over ten automations to just two, which not only saved time but also reduced the chance of errors. The blueprint is incredibly flexible, allowing me to add or modify features as needed without diving deep into complex coding.

Why This Blueprint?

I looked into other similar blueprints, but none offered the simplicity and functionality I was looking for. This solution was perfect because it addressed all my needs with minimal code, making it easier to troubleshoot and update in the future.

How to Get Started

If you’re interested in setting this up yourself, here’s a quick rundown of what you’ll need:

  • A Yeelight 650 ceiling light with ambilight functionality.
  • Two Xiaomi Wireless Buttons (WXKG01LM) paired with Zigbee2MQTT.
  • A basic understanding of Node-RED and Home Assistant automations.

The blueprint itself is well-documented and includes all the necessary inputs and outputs, making it accessible even for those who are relatively new to this kind of setup.

Final Thoughts

This setup has completely transformed how we interact with our lighting. It’s intuitive, reliable, and has freed up so much time that I can now focus on other smart home projects. If you’re looking to simplify your lighting controls, I highly recommend giving this blueprint a try!

Let me know if you have any questions or if you’ve found other creative ways to use Xiaomi buttons in your setup. Happy automating! :rocket: