python-broadlink
python-broadlink copied to clipboard
Cloud API
In the readme it says it is not supported.
Is there a reason why it is not?
Has anyone tried to make it work?
No reason, other than that nobody's done the necessary work.
I've currently got a hacked together project that is a flask API that sends off commands to the broadlink so that I can use it with IFTTT. A lot of things are hard-coded so it's not really shareable but if you look up flask you should be able to get it to work, it's nothing special.
@jasongi May you describe how are you made it? Maybe you have the article already? Or may you say the names of your ifttt-widgets?
@wwarlock I'll try write something up over the next couple of days and upload the code if I have time.
@jasongi I'm more interested in your system architecture. Are you able to communicate directly to the Broadlink devices from a cloud server?
I have an web server (using nginx/flask) exposed to the internet on my local network that my broadlink is on. It sends the commands to the broadlink using python-broadlink when it receives POST requires from the webhooks action on IFTTT. I'm not using broadlink cloud at all.
The issue being discussed here is using Broadlink Cloud API directly from a server outside of home WiFi network. Your system architecture relies on python-broadlink locally, that's out of question.
In case anyone wants to work on it, I found an interesting project that partially supports the Cloud API. It is written in PHP and translating it into Python is a trivial task, but it requires time that, unfortunately, I no longer have available :(
https://github.com/nick7zmail/MajorDoMo-dev_broadlink