This is now supported in the core HA code. Do not use this custom component.
Custom extension to the standard Broadlink integration for Home Assistant to support the British General BG1 smart switches. E.g.:
- https://www.screwfix.com/p/british-general-smart-home-13a-2-gang-sp-smart-socket-white/827gv
- https://www.screwfix.com/p/british-general-800-series-13a-2-gang-sp-smart-socket-white/306hv
The python-broadlink
library has been extended to support these devices, however the updated version hasn't been released yet, so can't easily be updated in HA. Once a release is done, I'll create a PR for HA. In the meantime, you can run this as a custom component.
Configuration is the same as standard broadlink, just set the "type" to bg1
and platform as custom_broadlink
instead of broadlink
. It will create a "left" and "right" switch for the device.
Example:
switch:
- platform: custom_broadlink
host: 192.168.2.123
mac: "24:df:a7:aa:bb:cc"
type: bg1
friendly_name: "Socket"
timeout: 2