antonpup / Aurora

Unified lighting effects across multiple brands and various games.
http://www.project-aurora.com/
MIT License
1.83k stars 367 forks source link

[Feature Request] Integrate Magichome wifi LED controllers. #522

Open Sokonomi opened 7 years ago

Sokonomi commented 7 years ago

I would be absolutely thrilled if you could have aurora interface with a common type of room lighting. Its called Magichome, and it apparently uses a common HTTP request protocol to talk.

Someone already laid some groundwork using python; https://github.com/beville/flux_led

Would it be within the realm of possibilities?

antonpup commented 7 years ago

I don't have any of these devices to test with, so someone else will have to implement this.

Sokonomi commented 7 years ago

I know a tiny bit of python, and even managed to make it control my desk lights through some batch files. But I don't know how to hook it into Aurora. If you can maybe tell me where/how aurora spits out commands for other devices, I might be able to jerryrig something?

I found an example python script in your package, but im not sure how to use it. I simply edit a copy of the script to set 'enabled' to TRUE, and put whatever is necessary to pass a color on to the magichome python script in SendColorToDevice at the bottom? How do I assign something to it in Aurora though, will it just 'tune in' to the peripheral channel, so to speak?

Im sorry for sounding so noobish, but if theres nobody who can do this, im gonna have to learn it somewhere myself. :')

Having my entire room run in ambilight mode would be so amazeballs. :p