Closed vzorglub closed 5 years ago
I think it's better to ask this question at the issue tracker of the parent project https://github.com/mjg59/python-broadlink
If they will add support for this device then it shouldn't be a problem support it at broadlink-mqtt
Also could you please execute next command and post output here? python import broadlink print hex(broadlink.discover(timeout=10)[0].devtype)
0x51e3
I have raised an issue on the broadlink repo: https://github.com/mjg59/python-broadlink/issues/289
Thanks
There is a pull request on the base project for the device here: https://github.com/mjg59/python-broadlink/pull/290 I have a working version of your code working on my machine with the device added including a command for the LED brightness and I kept the same topic structure as the MP1 device What do I do now?
Could you please create a pull request for your changes? Also, it isn't clear what get_state method returns. Do you have an example of output? I need it to correctly implement sending current device state periodically
Committed reading of state parameters from BG1 device, please test
@eschava Could you please create a pull request for your changes?
How do I do that?
I don't know exactly what you added in the file so I can't add your state code in mine I'll wait for a full version from you to test
Merged, please update
All working Tested with json False and True Both working
Thanks a lot
Welcome!
Hi, I have purchased this device: https://www.bgelectrical.uk/smart-sockets
After a bit of digging, I found out that they use a broadlink chip:
https://community.home-assistant.io/t/uk-wifi-smart-socket-screwfix-testing/119995/5
So I though I would try using your broadlink-mqtt
Kind of works:
So, it connects to the device but it is
unknown
It has two sockets so I tried to force the config as an MP1 device. No dice It tried as a single socket SP1 and then SP2. No diceIt connects, so there must be a way. I have a spare device that I can send by post I can also send debug logs or whatever is needed
Thanks