Author Topic: Controlling my wiflights (Milight) with VC  (Read 8710 times)

0 Members and 1 Guest are viewing this topic.

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« on: April 05, 2014, 11:06:43 PM »
Hi all just thought i'd post the link to my 1st youtubevid with me led lights and vox commando. Not great but at least you can get an idea  :biglaugh

https://www.youtube.com/watch?v=xIc2xSKsX5I

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #1 on: April 06, 2014, 05:52:27 AM »
Thanks for the video, good job. The MiLight looks really the similar as the Hue, very interesting. If you have done all the colour commands, you can post the group in the XML exchange to share with us, it looks like the MiLight is cheap alternate to the Hue and there is also a controller for LED stipes available.

 :clap
***********  get excited and make things  **********

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #2 on: April 06, 2014, 07:41:07 AM »
Hi Kalle, I will do the colours and share that xml with you. thanks for reminding me of that. I still want to double check with James if the dll he put together for me that I am so thankful for will be included in the next update for vox. Suppose without that the xml might be seen as corrupt?? not sure. But James sure did a great job for me and helped me so much in the 30min he spent with me... hence I am so bummed that I haven't made any of the hangout sessions lately. Fell asleep at 2 am this morning missing it by 30minutes but ill do my best for next time.

Also very keen to look at those LED strips  ;D they do look cool

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #3 on: April 06, 2014, 10:14:33 AM »
Hey thanks for posting the video.  Looks great.  The lights are very responsive.  In case you are building this into a larger set of commands I always recommend that people try to avoid single word commands like "white".  Of course it's up to you and whatever works, works.  Just my opinion...

I updated the TCP plugin to add the action "TCP.UDP.SendMixed".  I believe this update is included in the latest release for both VC1 and VC2.

If you want to attend the next hangout we can try to choose a different time.  I am not likely to be able to do it earlier, but I could do it later so that you could get up a bit earlier in the morning to join us.

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #4 on: April 07, 2014, 02:34:17 AM »
thanks for the update James and I am really looking forward to deploying the lights all throughout the house now! And the single word commands make good sense so thanks for the heads up there as well. That will save me so much time going forward if i do it right from the get go.

I also look forward to the next hangout session and I am more than willing to meet at any time over a weekend. I was just back at class this week and it clearly took it out of me :) 

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #5 on: August 07, 2014, 12:44:07 PM »
Hey Mdsh i was wondering if you would share your final xml with me. My lights are arriving Friday. Also curious did u ever expand into the led strips?

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #6 on: August 08, 2014, 03:45:53 AM »
Hi Graves, I sent you a PM and I will be more than happy to share my xml with you. I never got these strips but id image they would work in a similar manner to the lights.

I will upload my xml as soon as I can for you

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #7 on: August 08, 2014, 04:07:38 AM »
Here we are... some xml files for you to test. Just a few notes

The XBMC one is set up for the White LED lights (not RGB) so the UDP string might look somewhat different and it is triggered my the play feature in xbmc (dim) and the stop will set it to 100% again. Only media that is added to library though. Not files you just open

The UDP wifilights xml is for my room and two entries here (ON\OFF) have an action trigger (event trigger) linked to them. This is coming from my Vera lite unit and detecting motion from my motion sensor sends an event to VC and VC in turn turns lights on when it sees motion or in 20 minuts with no motion will switch them off again

The Fancy stuff was James being his usual clever self. He wipped these together in 2 seconds and I just sat doing  :bonk
Not sure if this will work for you with just the xml as James also set some items in phase only and phase, value xml sets

Let me know if these work for you

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #8 on: August 08, 2014, 07:42:24 AM »
Hi mdsh,

Could you please attach also the 2 payload xml files, wifilightsgroups.xml & wificolours.xml

 I think for sure people who want to try these commands will need those payload xmls files to get started. They'll be in the payloads directory of your VoxCommando folder (i.e., wherever you've installed VC).

Thanks for posting this!
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #9 on: August 11, 2014, 08:45:25 AM »
Thank u mdsh. I will try these soon, but im thinking i will aslo need the payloads too.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #10 on: August 14, 2014, 10:05:56 PM »
@Graves - I can't guarantee these will work because I'm just guessing based on what I've read online and what I'm seeing in the commands the mdsh posted, but you can give the attached payload xml files a try.

If not, hopefully he'll see your request sometime soon.
« Last Edit: August 16, 2014, 06:48:23 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #11 on: August 15, 2014, 09:20:53 AM »
Mdsh is currently on a business trip but has promised to upload the rest of his relevant files when he gets home.

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #12 on: August 15, 2014, 09:52:48 AM »
@nime5ter. Thank u but i still need the wifilightgroup payload.  doesnt seem to be working without it

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #13 on: August 15, 2014, 10:18:43 AM »
Hi,

I guess I accidentally named the groups payload xml differently.

Just rename the payload xml file I posted above from "wifigroups.xml" to "wifilightsgroups.xml", which is what that payload file is called in mdsh's commands.

That said, these files are only needed for the few commands that require them. If the other commands are not yet working for you, then the payload xml files are not going to make a difference.

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mdsh

  • $upporter
  • Sr. Member
  • *****
  • Posts: 127
  • Karma: 4
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #14 on: August 16, 2014, 06:37:45 PM »
Good day guys, sorry for the delay in reply. I was away for work but back home now.
Please find the payloads attached and let me know if you have any other problems. Also Graves how are you gettig on with your LED lights?

The attached xml files are located under the payloads folder in my VC install. Not sure if locations makes a difference (dont think so as youll specify where they are but just in case )

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #15 on: August 16, 2014, 07:29:56 PM »
Well the leds turn off and on and dim. Just cant get them to change color. If i say "white"  they do as told. Nothing happens when i want to change it to a color.

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #16 on: August 16, 2014, 07:38:04 PM »
Ok mdsh your payloads work great. Thank you so much

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #17 on: August 16, 2014, 07:45:51 PM »
Yes, my mistake in the payload xml I posted was that I didn't notice that the " \ " was not in the original command xml, so it needed to be in the payload xml. Ah well! Glad everything is sorted.

Thanks again, mdsh.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Graves

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Controlling my wiflights (Milight) with VC
« Reply #18 on: August 24, 2014, 12:00:36 PM »
Does anyone know all the color commands in hex. Im trying to make it so when i say SHOWTIME my theater led strip accent lights come on. My X10 lights work just fine but im trying to get a certain color on all the led strip lights. Basically I want the strip to go from off to white, or dark blue or whatever color i want when i say the command. I tried the color hexes in the payload but it seems the light must first be white in order for it to switch to a color. Looking for a way around this. Its probably me not doing something right lol.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #19 on: August 24, 2014, 12:15:44 PM »
Can you post the xml for the command you tried to create, even though it's not working, so that we can see your current approach?
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Controlling my wiflights (Milight) with VC
« Reply #20 on: August 24, 2014, 12:25:04 PM »
If you want something in between violet and royal blue, then you can use values in that range.

0x01 , 0x02 , 0x03, ... , 0x1A ,  0x1B ,... , 0x1F  

I don't think that you need to set the lights to be white, but you do need to turn the lights on before you set the colour.

You should also do as nime5ter suggests if you still need help, or even if you figure it out please post a sample of what works.

Code: [Select]
Byte2: Color Matrix Chart: (thanks Stephan Schaade, http://knx-user-forum.de http://mknx.github.io/smarthome/)

note there are more colours (0-255) in between, this color chart is just steps of 16.
    0x00 Violet
    0x10 Royal_Blue
    0x20 Baby_Blue
    0x30 Aqua
    0x40 Mint
    0x50 Seafoam_Green
    0x60 Green
    0x70 Lime_Green
    0x80 Yellow
    0x90 Yellow_Orange
    0xA0 Orange
    0xB0 Red
    0xC0 Pink
    0xD0 Fusia
    0xE0 Lilac
    0xF0 Lavendar

taken from : http://www.limitlessled.com/dev/

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Controlling my wiflights (Milight) with VC
« Reply #21 on: January 27, 2015, 02:27:07 PM »
I know this is a bit older of a post, but I figured some things out with these lights and have to say they work well and thanks to all the info others have shared on these lights

I ordered mine from Limitlessled.com (RGBW starter kit took 3.5 weeks to receive)

I created a command to dim the lights in 10% intervals for group one, being that there API says it jumps by 3.6% I rounded to the closest 10 for this command, because who wants to remember 21% 25% 29%.....

Mighlight
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<commandGroup open="True" name="Mighlight " enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="359" name="Dim Lights to {1} (10% jumps)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TCP.UDP.SendMixed</cmdType>
      <params>
        <param>\x45\x00\x55</param>
        <param>8899</param>
        <param>192.168.1.240</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TCP.UDP.SendMixed</cmdType>
      <params>
        <param>\x4E\{1}\x55</param>
        <param>8899</param>
        <param>192.168.1.240</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Dim Lights to, set lights</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\MILIGHTDIM.xml</payloadFromXML>
    <phrase optional="true">percent</phrase>
  </command>
  <command id="279" name="Disco" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TCP.UDP.SendMixed</cmdType>
      <params>
        <param>\x45\x00\x55</param>
        <param>8899</param>
        <param>192.168.1.240</param>
      </params>
      <cmdRepeat>2</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TCP.UDP.SendMixed</cmdType>
      <params>
        <param>\x4D\x00\x55</param>
        <param>8899</param>
        <param>192.168.1.240</param>
      </params>
      <cmdRepeat>4</cmdRepeat>
    </action>
    <phrase>lets get the party started, Disco Mode</phrase>
  </command>
</commandGroup>


Payload for dimming the lights are attached

I also found that when setting Disco Mode if you have the disco Action trigger more then once it will change the type of disco pattern and increase the speed, the Command in the group above triggers 4 times and makes the lights pulse faster then sending the action once


I Also had a ?
is there any way to get the state (On/Off) of the light with VC
I'm wanting a command that will toggle lights
Off if On / On if Off

Thanks

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling my wiflights (Milight) with VC
« Reply #22 on: January 27, 2015, 03:42:42 PM »
Based on the info you just linked to, there is no way to query the bridge for info of any kind.

So if you want to know the status of the lights you will need to store it in a variable or a map table.

What about if the lights are changed by another program? Yes this is a problem. If you are ambitious maybe you can create a UDP listener to keep track of what is being sent to the bridge.

Toggle obviously requires knowing the state of the light. After that it's a simple logic block.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Controlling my wiflights (Milight) with VC
« Reply #23 on: January 27, 2015, 04:55:51 PM »
Quote
So if you want to know the status of the lights you will need to store it in a variable or a map table.

I didn't see anything about it in the API page but i thought i would check since i don't know much about using tcp,
I'll use a map table since vox will be the only software controlling it, the light switch is the only other variable 

ill just make sure that all light commands go to my main Voxcommando so i know that the map stays correct

Thanks
« Last Edit: February 06, 2015, 08:02:55 PM by PegLegTV »