Hey everyone, I wanted to share my success story with integrating the Xiaomi Mijia Light Sensor into my OpenHAB setup. After some research and trial and error, I managed to get it working seamlessly! Here’s how I did it:
First, I purchased the Xiaomi Mijia Light Sensor from Amazon. It’s a cost-effective solution compared to other motion and light sensors I’ve come across. The device is compact, battery-powered, and water-resistant, which makes it perfect for outdoor use.
Setting it up was a breeze. I used the Mi Home app to pair the sensor with my Zigbee hub. Once paired, I configured it within OpenHAB by adding the necessary items and rules. The sensor detects light levels and sends updates to OpenHAB, which I then used to automate my roller shutters.
Here’s a quick snippet of my configuration:
plaintext
Number lightSensor “Outdoor Light Level [%.1f lux]” { zigbee=" ieeeAddress=0x00124B0000XXXX, cluster=0x0402, attribute=0x0000, type=FLOAT" }
With this setup, I created a rule that adjusts the roller shutters based on the detected light levels. It’s been working perfectly for the past week, and I couldn’t be happier with the results!
If anyone else is looking to automate their blinds or lights based on ambient light, I highly recommend this sensor. It’s reliable, efficient, and integrates beautifully with OpenHAB. Happy automating!