This s*** is too good!

I use this, but I have them turn on/off after a 5-minute delay, with a cancel on truth change. This creates a buffer that prevents them from switching on during a momentary cloud cover passing, or keeps them from freaking out if the illuminance is teetertottering on the threshold.

@Angus_M convinced me to buy one too!

where do you get them :wink:


$15.99 on Amazon. GearBest was a couple dollars more.

in the UK but i'll take a look what's its full name?

Xiaomi Aqara Magic Cube (MFKZQ01LM).

1 Like

for that price hell yeah :smile: thanks

1 Like

These would be fun for the kids. Have TTS say something random when you flip the cube, like a magic 8 ball

1 Like

Yes, I do. On rare occasion, a storm rolls in and the luminescence doesn't change quickly enough to compensate my rainy day routines.

1 Like

Love mine! Made an app for it awhile back too...

1 Like


That's awesome Bryan!

1 Like

Does this pair directly?


Did you mean the Xiaomi Aqara Magic Cube? If so, yes, it will pair directly. Helps if you have Xiaomi-compatible zigbee repeaters (like the Tradfri plugs).

Keith G (@veeceeoh) has written/maintained Hubitat drivers for a large number of Xiaomi zigbee devices that can be found here. Bryan (@bptworld) has a great Magic Cube app linked to just a couple posts before yours.

Red is really great at night. It allows you to still see and not shrink your pupils to pinpoints. I'm trying some ideas on strategically placed bulbs so I can stop finding walls and table legs with my toes.

1 Like

Hmm, so I can finally get rid of my lux sensors and use APIXU? Nice! (Havent read the whole thread yet)

Before you change out from using your lux sensors to use apiXU you might like to set the device up and then monitor how the lux reading performs.
With mine (I'm in the UK) occasionally it will read 5 and at the next 5 minute poll it will go back to the correct value.
While this doesn't matter at night, the last thing you will want is lights turning on in the middle of a bright sunny day.
Just my experience but thought I would pass it on.


I tried a nearby weather station and could never get it working correctly, sun there was not always what was happening at my house.

My Zooz 4in1 has been working great for many months, zero complaints

Took some time to dial it in but now it's spot on and hardly ever turns on when it's light enough inside the house

Good luck


I have to report similar things. Using something besides a local LUX sensor can give you unpredictable results. You could combine and average a local with a weather LUX sensor as @Cobra does. However you try, I wouldn't recommend basing LUX on a sole weather source.

For Canada or US, this was the best deal I could find for the Cube.

My rules are VERY similar to yours with the Day/Evening thing. I use two virtual switches in mine "dark inside" and "dark outside" then I just use those switches in my rules....and in other Motion Lighting rules.

Download the Hubitat app