I want to get some unsupported bulbs working in HA. The Broadlink integration in HA uses the python-broadlink library, I’ve created a pull request for this library here https://github.com/mjg59/python-broadlink/pull/766 to add the ID for BG Home/Luceco bulbs. This works great and I can control the bulbs from the python interpreter.
I’ve tried adding the modified ‘broadlink’ folder from this repo to the /config/custom_components/broadlink added a manifest.json with {"version": "0.0.0"}
followed by a restart, but the Broadlink integration still gives “Device not supported”. The log gives the usual:
ERROR (MainThread) [homeassistant.components.broadlink.config_flow] Unsupported device: 0x606d. If it worked before, please open an issue at https://github.com/home-assistant/core/issues
If I fire up the terminal in HA and do the following:
cd /config/custom_components
pip install cryptography
python3.11
>>> import broadlink
>>> broadlink.hello('192.168.0.56')
broadlink.light.lb1(('192.168.0.56', 80), mac=b'\xec\x0b\xae\x82\x16\xeb', devtype=24685, timeout=10, name='Smart Bulb', model='SLA2?RGB9W81', manufacturer='Luceco/BG Electrical', is_locked=False)
So I know the code is working and correctly identifying my bulb as an unlocked lb1 type light.
Q:How do I get HA to use my version of the broadcom library instead of the unmodified one?
I’m running Home Assistant 2023.9.2 / Supervisor 2023.09.2 / Operating System 10.5 / Frontend 20230911.0 - latest on a Raspberry PI4 2GB built using the Raspberry PI4 Imager.