broadlink.discover is able to discover all the bulbs and identifies them as model=‘LB1’. My bulbs are not RGB but only white/warm colors (device id: 0x60C7). Might that be the issue?
I had a similar problem and opened an issue in the python-broadlink:
It seems that in my case the device is locked. Unfortunatly I can’t find a way to unlock but using the broadlink app to configure the lamp instead of the magichome app sort of did the trick to unlock the lamp (although then the broadlink app complains that it can’t add the lamp…)
yeah I tried to configure it with the broadlink app (instead of magichome) and it failed as well. Can you please specify the exact steps you did so I can try it myself?
Update: I tried setting the lights using the Broadlink app and although it did fail, I am now able to control my lights using the python-broadlink library! Great find! Thanks for sharing!!
Yes, that’s the same with me. The application fails but for some reason now the python-broadlink can now interact with the bulbs. Now it’s only a question to understand what we need to do to make it work in Home Assistant.
Apparently, you have to register the lightbulb in the broadlink app instead of the MagicHome app. In this app, you can “unlock” it. I tried this with my smartbulbs, but the setup seems to fail while it’s successfully connected to the Wi-Fi, so I can’t seem to register it with the broadlink app… I contacted broadlink support now, hopefully they provide a clear explanation.
aha ok, that’s good to know! I tried it with the failed bulbs and as you say, authentication succeeds with them. I misunderstood the previous conversations here, thank you for clarifying.
Did you get any luck with the custom python library in HA?
No, support is missing from the HA integration. I ended up having a python script constantly running on my HA docker host (rasp pi) listening to MQTT requests from HA and turns on/off the bulbs accordingly using the python library.
Thanks a lot @L_I_Am, I saw that your PR is under review. Do you know how long does it usuly take to merge changes back? Is there any way to deploy your changes from dev as a custom component?
I have no idea how long it usually take to merge back. There was a review but all comments are already resolved, not sure what will happen now, going to bump it anyway now. You can deploy the changes from dev as a custom component indeed. Just download this entire folder and place it in your custom_components folder. As it’s exactly the same as the already embedded broadlink library, it will override the existing one as long as it’s in that folder.
due to the newest release of home assistant, just copying the folder to the custom-components folder will still use the official version. You’ll need to add a version key to the manifest.json.
@L_I_Am, thanks I deployed and tested. Works fine. I shall comment on github as well. Now I need to figure out how to add scenes :). Thanks for all great work
First congratulations for your work, I followed your tip to copy the folder and put it in the custom_component folder along with the “version”: “1.0.0” in manifest.json and the result I got was this, it found the lamps automatically.