mjg59 / python-broadlink

Python module for controlling Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs
MIT License
1.37k stars 480 forks source link

Cloud API #99

Open dsshap opened 7 years ago

dsshap commented 7 years ago

In the readme it says it is not supported.

Is there a reason why it is not?

Has anyone tried to make it work?

mjg59 commented 7 years ago

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

jasongi commented 6 years ago

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.

wwarlock commented 6 years ago

@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?

jasongi commented 6 years ago

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

torinnguyen commented 6 years ago

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

jasongi commented 6 years ago

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.

torinnguyen commented 6 years ago

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.

felipediel commented 3 years ago

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