Now i would like to test this in home assistant on my raspberry but i just cannot find a way to replace the original script used? It needs to be in there somewhere but i just cant find it!?
I wonder if i can make a custom component for this, not quite clear on the details for that tho. If i could just find the script that i need to update that would be so much easier, but i think thats not the way intended from the devs…
I have successfully created a custom component for this now. It’s been quite a task, mostly since i did not have much knowledge about hassio beforehand.
It is somewhat of a hack for not but seems to work very well and i will hopefully continue to update it over time. For now i have not uploaded this code anywhere, it’s not in a ease of use state but anyone who knows python should be able to set up a few devices, it’s not using any config options yet so it’s all hardcoded for each device.
This being said, i’m also pretty happy that it works and also that i think i have some extra features compared to the official broadlink integration… but dont quote me on that since i dont have any other broadlink devices! I also see now that i have not specified that this is regarding to a clas ohlsson SP4 switch, adding that here for anyone who might be searching for the same solution!
IF you want to try this solution for yourself, answer here or ping me and i’ll share it with you, also i’ll try to give a small intro to the current state
Hi, I would be very interested to get this custom component. I’m trying to integrate a lightbulb that is working with the python-broadlink package but not yet in the HA integration.
However it’s outdated now, but uses the Python library you linked as a local library so you should (could?) Be able to Stitch it together in a similar way