Milight WW/CW LED Controller

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
ricorico94
New user
Posts: 8
Joined: 16 Nov 2016, 10:28

Milight WW/CW LED Controller

#1 Post by ricorico94 » 16 Nov 2016, 10:34

Hi,

I face issues using RFLink to control a Milight WW/CW LD control with a white led strip.
I saw that R43 is suppsoed to handle ww/CW bulbs, so I thought that led strips would also be handled.
I posted details on another forum (https://www.domoticz.com/forum/viewtopi ... 49&t=14286) but I'm not sure which forum is best suited to raise such issues. Should I use this one to reach RFLink developers rather than the developer of Domoticz ?

br,
Ricorico94

User avatar
Stuntteam
Site Beheer
Posts: 786
Joined: 27 Jan 2016, 16:46

Re: Milight WW/CW LED Controller

#2 Post by Stuntteam » 16 Nov 2016, 19:37

RFLink should work with your device..
Did you check the FAQ?
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

ricorico94
New user
Posts: 8
Joined: 16 Nov 2016, 10:28

Re: Milight WW/CW LED Controller

#3 Post by ricorico94 » 17 Nov 2016, 18:11

Hi,

Well, the FAQ doesn't say much about registering device with an existing physical remote and it states nothing abot "single color leds", but at least I could see that I had most likely to select the "Dimmer" type for the device. And the result is a switch with the RGB colorpanel and below it a slider for brightness.
I had tried to delete the switch and device and apply the end of the FAQ
Again select "Create RFLink Devices"
- Enter: 20;17;MiLightv1;ID=5A8294;SWITCH=01;RGB=8690;CMD=ON;
- Press OK
- Go to settings/devices and press the green arrow to get the bulb under the switches tab
- Go to the switches tab, select the new device and choose "modify"
- Modify the switch type to "Dimmer"
I had replaced the ID by the one I had noticed in the debug of RFLink when it was connected on PC with RFLInkLOader). Same result and same "RGB" subtype in the Devices list.
I face multiple problems:
- as is, the switch is not very convenient, as I can not use it as a simple dimmer, but need to go into color panel and move the brightness slider
- it seems controlling the milight, but sometimes, behavior is weird: for instance slider was around 80% but actual lighting was very low, and moving the slider up slightly (like to 90%) was indeed increasing light a little bit, but definitely not at almost its max level. I had to switch full ON with remote so that the slider gets consistent again.
- when I activate the remote, Domoticz is not updated: I can see a line appearing in the log (but always the same generic message not very helpful), but the switch (nor the log of the switch) is updated. I tried several buttons of the remote (on and off of the led driver, on and off of the group, the upa nd down buttons of the ring button (which dims up/down the light).. No impact in Domoticz.

As I don't know if it can be done in Domoticz (is there a way to get debug info when connected to Domoticz?), I unplugged and reused RFLink LOader.
I got this (in case it helps, I activated the LogMode debug at some point near the end of the log because I saw that same message was appearing whether I dim up or down with remote ring):
20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R44;
20;01;MiLight=ON;
10;version;
20;02;VER=1.1;REV=44;BUILD=08;
10;status;
20;03;STATUS;setRF433=ON;setNodoNRF=OFF;setMilight=ON;setLivingColors=OFF;setAnsluta=OFF;setGPIO=OFF;setBLE=OFF;setMysensors=OFF;
20;04;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
20;05;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ON;
20;06;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=OFF;
20;07;Oregon TempHygro;ID=2D70;TEMP=00cc;HUM=53;HSTATUS=1;BAT=OK;
20;08;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ON;
20;09;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ALLON;
20;0A;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=OFF;
20;0B;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;0C;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;0D;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;0E;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
20;0F;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ON;
20;10;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;11;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;12;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;13;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;14;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;15;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;16;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;17;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=BRIGHT;
20;18;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;19;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;1A;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;1B;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;1C;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;1D;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ON;
20;1E;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=OFF;
20;1F;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=COLOR;
20;20;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;21;MiLightv1;ID=5A3878;SWITCH=01;RGB=FF00;CMD=COLOR;
20;22;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;23;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;24;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=OFF;
20;25;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ON;
20;26;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=OFF;
20;27;MiLightv1;ID=5A3878;SWITCH=01;RGB=0000;CMD=ON;
20;28;Oregon TempHygro;ID=2D70;TEMP=00cc;HUM=53;HSTATUS=1;BAT=OK;
20;29;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;2A;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;2B;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;2C;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=BRIGHT;
20;2D;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;2E;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;2F;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;30;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;31;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;32;MiLightv1;ID=5A3878;SWITCH=01;RGB=00FF;CMD=ALLBRIGHT;
20;33;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;34;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
20;35;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;36;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;37;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ON;
20;38;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ALLON;
20;39;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ALLON;
20;3A;Oregon TempHygro;ID=2D70;TEMP=00cc;HUM=53;HSTATUS=1;BAT=OK;
20;3B;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ALLON;
20;3C;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;3D;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;3E;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;3F;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;40;MiLightv1;ID=5A3878;SWITCH=00;RGB=FF00;CMD=COLOR;
20;41;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;42;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=ALLBRIGHT;
20;43;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ON;
20;44;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
20;45;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;46;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=ON;
20;47;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;48;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;49;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4A;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4B;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4C;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4D;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4E;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;4F;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;50;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;51;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;52;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;53;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;54;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;55;Oregon TempHygro;ID=2D70;TEMP=00cc;HUM=53;HSTATUS=1;BAT=OK;
20;56;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
10;rfdebug=on;
20;57;RFDEBUG=ON;
20;58;MiLight DEBUG;Bytes=07;5a3878000c4764;
20;59;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;5A;MiLight DEBUG;Bytes=07;5a3878000c4865;
20;5B;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;5C;MiLight DEBUG;Bytes=07;5a3878000c4966;
20;5D;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;5E;DEBUG;Pulses=34;Pulses(uSec)=1740,1110,30,540,210,30,360,270,180,2580,120,1320,150,180,330,60,3450,30,90,60,990,120,510,90,1560,30,180,30,150,0,1350,330,420,120;
20;5F;MiLight DEBUG;Bytes=07;5a3878000c4a67;
20;60;MiLightv1;ID=5A3878;SWITCH=00;RGB=00FF;CMD=BRIGHT;
20;61;MiLight DEBUG;Bytes=07;5a387800044b60;
20;62;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;63;MiLight DEBUG;Bytes=07;5a387800044c61;
20;64;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;65;DEBUG;Pulses=23;Pulses(uSec)=3000,180,1170,300,210,330,180,90,150,3960,30,240,1530,0,180,90,570,30,420,930,90,990,30;
20;66;MiLight DEBUG;Bytes=07;5a387800044d62;
20;67;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;68;DEBUG;Pulses=29;Pulses(uSec)=60,0,1440,930,210,60,30,900,1560,120,30,60,30,480,180,690,30,300,90,240,1980,240,30,210,60,150,210,150,180;
20;69;DEBUG;Pulses=30;Pulses(uSec)=30,570,90,210,1500,60,180,60,360,90,660,240,60,1200,540,90,1320,300,360,150,1470,960,30,1350,390,1200,30,90,900,30;
20;6A;MiLight DEBUG;Bytes=07;5a387800044e63;
20;6B;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;6C;MiLight DEBUG;Bytes=07;5a387800044f64;
20;6D;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;6E;DEBUG;Pulses=24;Pulses(uSec)=1620,90,120,240,1050,30,240,120,270,180,210,300,30,210,60,2340,510,60,3960,4380,750,2250,2040,390;
20;6F;MiLight DEBUG;Bytes=07;5a387800045065;
20;70;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;71;MiLight DEBUG;Bytes=07;5a387800045166;
20;72;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;73;MiLight DEBUG;Bytes=07;5a387800045267;
20;74;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;75;DEBUG;Pulses=23;Pulses(uSec)=840,30,30,330,510,150,1470,1140,90,3600,270,90,480,120,240,720,1830,180,150,840,60,480,2250;
20;76;MiLight DEBUG;Bytes=07;5a387800045368;
20;77;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;78;MiLight DEBUG;Bytes=07;5a387800045469;
20;79;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;7A;DEBUG;Pulses=31;Pulses(uSec)=120,870,30,360,1920,30,150,630,180,60,2220,510,90,150,540,990,60,1050,30,240,30,120,330,840,270,720,1740,390,30,1080,120;
20;7B;MiLight DEBUG;Bytes=07;5a38780004556a;
20;7C;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;7D;DEBUG;Pulses=29;Pulses(uSec)=90,30,240,30,1500,30,720,30,300,30,660,210,240,150,930,30,510,120,90,1530,60,450,180,300,90,1140,960,90,30;
20;7E;MiLight DEBUG;Bytes=07;5a38780004566b;
20;7F;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;80;MiLight DEBUG;Bytes=07;5a38780004576c;
20;81;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=BRIGHT;
20;82;MiLight DEBUG;Bytes=07;5a387800095872;
20;83;MiLightv1;ID=5A3878;SWITCH=00;RGB=0000;CMD=OFF;
20;84;DEBUG;Pulses=230;Pulses(uSec)=720,1920,330,1020,750,960,810,930,840,900,840,900,840,900,840,900,840,900,870,900,870,900,870,870,870,870,870,870,870,900,870,420,360,900,390,390,870,390,360,900,360,390,870,900,870,390,360,900,840,900,870,870,360,420,870,390,360,900,390,390,840,900,840,420,360,900,390,390,870,390,390,900,870,870,870,900,840,900,870,900,840,870,870,900,390,390,840,420,360,870,870,900,840,900,840,870,870,900,870,870,390,420,870,870,870,870,870,420,360,870,870,900,870,900,870,870,870,870,870,900,840,900,390,390,840,420,360,870,870,870,870,900,840,900,870,870,870,900,360,420,870,390,390,900,840,900,870,870,870,900,870,870,870,900,360,390,840,900,870,420,360,870,870,870,390,390,840,420,360,900,360,420,840,420,360,900,870,900,870,870,390,420,840,390,360,900,360,390,870,900,840,420,360,870,390,390,840,420,360,870,390,390,870,390,360,900,840,870,870,900,360,420,840,390,360,900,390,420,840,870,870,870,870,390,360,900,390,390,840,6990;
20;85;Oregon TempHygro;ID=2D70;TEMP=00cc;HUM=53;HSTATUS=1;BAT=OK;
20;86;DEBUG;Pulses=23;Pulses(uSec)=900,90,30,150,0,0,690,120,420,360,180,840,30,150,30,630,210,1080,210,30,450,240,270;
10;rfdebug=off;
20;87;RFDEBUG=OFF;
20;88;Oregon TempHygro;ID=2DD5;TEMP=0088;HUM=69;HSTATUS=0;BAT=OK;
In above log, I used nearly every button of the remote: the ones linked to led driver, the ones for the group, and the ones from the ring (which dim up/down the light).

I'd appreciate your help to understand what I do wrong, but if I can help by providing some tests or whatever, I'm also happy to do so.

br,
Ricorico94

User avatar
Stuntteam
Site Beheer
Posts: 786
Joined: 27 Jan 2016, 16:46

Re: Milight WW/CW LED Controller

#4 Post by Stuntteam » 17 Nov 2016, 19:12

The RGBW led strips do support dimming to a specifc level. So you can instruct it to go to 20% 5%, 40% etc.
The RGB/White strips only support brightness up/down commands. This means you can not tell it to go to a specific level.
We tried to simulate it with the brightness slider but it easily loses track.
Unfortunately this is not something that can be fixed. The protocol simply does not have direct dim level support.

There is no real alternative, we could go to full strength and dim x times down to a level but it could still loose track and on every dim attempt it has to go to full strength which is also not very convenient.
I have no idea if it is possible to use a white only led strip on the RGBW controller.. if that can be done it would be a solution..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

ricorico94
New user
Posts: 8
Joined: 16 Nov 2016, 10:28

Re: Milight WW/CW LED Controller

#5 Post by ricorico94 » 17 Nov 2016, 20:56

Hi,
Thanks for this clarification.
Is it normal however that Domoticz does not react when the buttons On, Off are pushed, or when up/down are pushed ? Shouldn't I see the switched being turned off if I push the OFF button ? And shouldn't the dimmer decreases (to whatever lower increment) if Domoticz receives the "down" button signal ?


I also have another question: is it possible to ask RFlink to issue a command through a macro in Domoticz (blockly, lua, bash..) ? (I think about sending commands like ones typed in RFLink Loader°


Ricorico94

ricorico94
New user
Posts: 8
Joined: 16 Nov 2016, 10:28

Re: Milight WW/CW LED Controller

#6 Post by ricorico94 » 23 Nov 2016, 10:52

Hi,

Could anyone tell me if it's normal that Domoticz does not change status when on and off buttons of physical remote are pressed ? (I understood that this single color driver can not provide all features of other Milight devices, but is this feature unavailable as well ? despite Domoticz logs show that RFLink detected Milight frames ?

br,
Ricorico94

User avatar
Stuntteam
Site Beheer
Posts: 786
Joined: 27 Jan 2016, 16:46

Re: Milight WW/CW LED Controller

#7 Post by Stuntteam » 23 Nov 2016, 11:15

No idea's about how to use macro's on Domoticz.

When you setup your milight correctly, the signals from the remote control and the signals send from Domoticz to Milight are chained together.
Thus when you press "ON" on the remote, the status in Domoticz should change.
Of course this can only be done when the signals from the remote are actually received. If you move too far and remote signals are not received by RFLink then the status is also not changed.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

ricorico94
New user
Posts: 8
Joined: 16 Nov 2016, 10:28

Re: Milight WW/CW LED Controller

#8 Post by ricorico94 » 23 Nov 2016, 20:02

Hi,

The weird thing is that RFlink reads the remote action: in Domoticz, the log displays for instance:
2016-11-23 19:56:03.895 (RFLink) Lighting Limitless/Applamp (MiLightv1)
but though I pressed the On button, the log file shows either nothing or "Off" (and if I press Off, it also records "Off")
But I press in Domoticz the switch, it can light on or off the led properly.
Is there a way to view in Domoticz (or via raspberry terminal) more details about what RFlink understands ? (instead of always the message "(RFLink) Lighting Limitless/Applamp (MiLightv1)" ?

br,
Ricorico94

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests