python-broadlink icon indicating copy to clipboard operation
python-broadlink copied to clipboard

Cloud API

Open dsshap opened this issue 7 years ago • 8 comments

In the readme it says it is not supported.

Is there a reason why it is not?

Has anyone tried to make it work?

dsshap avatar May 19 '17 02:05 dsshap

No reason, other than that nobody's done the necessary work.

mjg59 avatar Jun 05 '17 07:06 mjg59

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 avatar Sep 25 '17 10:09 jasongi

@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 avatar Apr 15 '18 04:04 wwarlock

@wwarlock I'll try write something up over the next couple of days and upload the code if I have time.

jasongi avatar Apr 15 '18 05:04 jasongi

@jasongi I'm more interested in your system architecture. Are you able to communicate directly to the Broadlink devices from a cloud server?

torinnguyen avatar Apr 15 '18 10:04 torinnguyen

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.

jasongi avatar Apr 15 '18 11:04 jasongi

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.

torinnguyen avatar Apr 15 '18 11:04 torinnguyen

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

felipediel avatar Mar 12 '21 12:03 felipediel