Author Topic: LEDENET Magic UFO?  (Read 4785 times)

Offline ceefin

  • Full Member
  • ***
  • Posts: 129
  • Karma: +6/-0
LEDENET Magic UFO?
« on: January 04, 2016, 07:18:45 pm »
Hi Rexbeckett,

Thank you very much for your work on the plugins. I've done a bit of tinkering with it and built some nice luup code to build myself a nicely multifunctional lamp with it out of a multiswitch, some lua, and some Siri/homekit voice commands.

I recently tried to get into the LED strip stuff, and found that MiLight just doesn't have a groupable RGBW controller. I bought the FUT028 but quickly found that it couldn't be grouped in with your plugin or the remote apps, then I inadvertently bought a CW/WW controller that can be grouped. I kept reading on the other RGBW 4-group controller that they have and found that it's RGB+W, not RGBW, unfortunately, so I looked at some other options.

I found the LEDENET Magic UFO device - http://www.amazon.com/LEDENET%C2%AE-Controller-Android-Smartphone-Control/dp/B00MDKOSN0, which looks to be a self-contained Wifi-enabled RGBW LED strip controller. Given that the LEDENET/MiLight/Limitless LED stuff all seems to come from the same place, I'm thinking I might give it a chance, and that your plug-in might be the way to go to integrate it into my system..

Have you looked into this device at all? I'm not familiar with the control codes used to access the wifi box that the plugin currently integrates with (nor am I familiar with the code you've written for the plug-in), but I wanted to run this info by you.

I found this link: http://www.emessaging.biz/blog/?p=629 as well as this zip file of communication protocol documentation, and example python scripts: https://www.dropbox.com/s/o48itl2b8k3kldw/UFO-Information.zip?dl=0 detailing how to talk to the unit. You know your code - how does the plugin code compare?

Thanks!

Offline zoot1612

  • Hero Member
  • *****
  • Posts: 598
  • Karma: +19/-1
Re: LEDENET Magic UFO?
« Reply #1 on: January 05, 2016, 12:11:08 am »
@ceefin

I have a couple MagicHouse globes that I was going to write a plugin for but to get the best out of them I think it requires a proxy. This was not something I'm ready to tackle.

Something along the lines of the upnp proxy http://apps.mios.com/plugin.php?id=3716 by futzle

As I do have the globes if anyone has suggestions on the best way to approach this I may still give it a go.

Offline ceefin

  • Full Member
  • ***
  • Posts: 129
  • Karma: +6/-0
Re: LEDENET Magic UFO?
« Reply #2 on: January 05, 2016, 06:46:15 pm »
@zoot1612 - I'm not familiar with the MagicHouse Globe? I'm looking at the Magic UFO RGBW controller.

The documentation for this device says nothing about needing any upnp type proxies, as the unit responds to TCP packets. My hope was that the communications protocols were similar (or hopefully identical) to the MiLight/Easybulb/LimitlessLED commands that Rexbeckett's plugin uses. I haven't had time to compare the two directly (yet) but I'll be working on it eventually as I ordered one of the UFOs today. If anything, I might try to use Rexbeckett's plugin as a framework if it needs to be adapted.

Offline ceefin

  • Full Member
  • ***
  • Posts: 129
  • Karma: +6/-0
Re: LEDENET Magic UFO?
« Reply #3 on: January 05, 2016, 07:05:59 pm »
Just a cursory glance at RexBeckett's code and the communication protocols for the Magic UFO shows me that these two systems are pretty much different. I guess I'm gonna need to figure out how to write me a plugin ... eventually :)

Offline zoot1612

  • Hero Member
  • *****
  • Posts: 598
  • Karma: +19/-1
Re: LEDENET Magic UFO?
« Reply #4 on: January 05, 2016, 10:35:13 pm »
@ceefin
@zoot1612 - I'm not familiar with the MagicHouse Globe? I'm looking at the Magic UFO RGBW controller.

The Globes are connected via Wifi and use the same protocol.

The documentation for this device says nothing about needing any upnp type proxies, as the unit responds to TCP packets.

Just a mis-understanding wasn't saying a upnp proxy but a TCP proxy installed the same way that the futzle has installed upnp proxy. The TCP proxy would handle all the connections.

Below is an excerpt from the documentation. I have changed the wording as it didn't translate well, hopefully I have got it right: -
Quote
If all the settings are correct the device should request a connection from the internet server. After the connnection has succeeded server will receive ?ACCF232C147E,HF-LPB100-ZJ011? every 2 minutes. The server should return Bytes:0x00 to keep connection up.

Link to english Magic House API: -
https://raw.githubusercontent.com/zoot1612/plugin_mh/master/MH_API.txt

Offline ceefin

  • Full Member
  • ***
  • Posts: 129
  • Karma: +6/-0
Re: LEDENET Magic UFO?
« Reply #5 on: January 06, 2016, 07:49:17 am »
I translated that last night, myself!

I don't think there needs to be any sort of persistent server sitting anywhere sending keep-alive signals to the LED controller. My understanding of the system is that it just responds to the TCP packets that it's given. This system though, in a bit of an improvement over the Milight bulbs, seems to offer a status query to get the current state.

There's a basic API written in Ruby for it here https://github.com/sidoh/ledenet_api and this code doesn't reflect any need for any persistent server. I'll get around to testing this when mine gets here.

What's your interpretation of the "0xF0 remote,0x0F local" flags in the API doc?


Offline ceefin

  • Full Member
  • ***
  • Posts: 129
  • Karma: +6/-0
Re: LEDENET Magic UFO?
« Reply #6 on: January 07, 2016, 09:55:23 am »
I did some digging this morning and found a bit more information about the Magic Home type stuff.

https://github.com/vikstrous/zengge-lightcontrol describes the API a little more and explains the remote mode I wasn't sure about earlier. It does mention something about a proxy as you had mentioned before, but more from the perspective of the bulbs/rgbw controller can act as some kind of simple hub/router for some purpose.

 I don't have any need to use the remote functionality of the units, as I intend to control it from Vera (and would rather not have my lightbulbs communicating off to some unknown place, so I'll likely be firewalling off the host it might try to connect to..)

I also managed to find the source of these kinds of products - http://zengge.en.alibaba.com/