I've been using them with Google Home, so the lights weren't automated with HA. I'll try the integration out.
I've been using them with Google Home, so the lights weren't automated with HA. I'll try the integration out.
Being new to all this home automation stuff I was quite intrigued how they worked though. They're exposed on the WiFi network over a really simple UDP based protocol which led me down a rabbit hole of writing a little go client to mess about with them, took a few evenings.
Not saying Xiaomi bulbs would be quite as simple to write an integration for, but they might have been. It's kind of fun seeing how people have reverse engineered all these custom protocols.
Tried to rebuy got a different brand and they don’t work offline properly. Bit of a crapshoot
These days I try to buy preflashed tasmota gear. Things like athom.tech
And looked up my old notes - copied in below though don't recall details of what I did. Suspect maybe I used the python stuff just to check that lan is enabled rather than editing
------
https://github.com/Squachen/micloud
pip install micloud
miiocli device --ip 192.168.1.88 --token FOOBAR info
miiocli device --ip 192.168.1.88 --token FOOBAR info
On iphone go to yeelight app, select the apps overall setting menu and enable lan control
I'll give this python script a try for sure, glad to know you got yours to properly work!
...and that too feels on brand for Xiaomi...utter chaos on branding.