Milight Zone Example

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Milight Zone Example

Post by jannnfe »

Hello,
can somebody tell me which commands i have to send to get 5 Bulbs individually controllable?
At the moment Bulb 1 has Zone 1, Bulb 2 has Zone 2, ...
But adding a new Bulb to for example Zone 1 i will control both in Zone 1
Please help me and i can't find anything about that in the internet
Thanks!
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Re: Milight Zone Example

Post by jannnfe »

Is there really nobody here who can help? I would be very happy!
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Milight Zone Example

Post by Stuntteam »

Milight boxes have 1 address and 4 zones. You can assign bulbs to each zone and control each zone individually..
Thus a maximum of 4 bulbs that you can control individually.
If you need more, you need another box..

With RFLink you do not have this limitation. The idea is still the same.. 1 address has max. 4 zones.
But with RFlink you can assign any address you want to any bulb you want..
There are 65535 addresses times 4 zones which gives you the ability to control 262.140 bulbs individually.
Just make up an address and pair the bulb to it.. instructions on pairing are here : http://www.rflink.nl/blog2/faq#Milight
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Milight Zone Example

Post by sincze »

Stuntteam wrote: Thursday 01 February 2018 19:55 Milight boxes have 1 address and 4 zones. You can assign bulbs to each zone and control each zone individually..
Thus a maximum of 4 bulbs that you can control individually.
If you need more, you need another box..

With RFLink you do not have this limitation. The idea is still the same.. 1 address has max. 4 zones.
But with RFlink you can assign any address you want to any bulb you want..
There are 65535 addresses times 4 zones which gives you the ability to control 262.140 bulbs individually.
Just make up an address and pair the bulb to it.. instructions on pairing are here : http://www.rflink.nl/blog2/faq#Milight
I was unable to add the hardware devices to the rflink without an original box, however...
Nor was I able to add the hardware manually.

But... at the remote location I build an ESP solution:

Code: Select all

https://github.com/sidoh/esp8266_milight_hub

JUs pretend you are a milight box with this software... Pair the device and have RFLINK run in the background (detect new hardware).
RFLINK will detect the command from the ESP hub and now I can control as many milights as I have within domoticz.
tnx Stuntteam :D for the great enhancement.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Re: Milight Zone Example

Post by jannnfe »

Thanks @Stuntteam for your reply.
If I understand this correctly:

10;MiLightv1;20ADDRESS1;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;02;34BC;PAIR; -> the 02 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;03;34BC;PAIR; -> the 03 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;04;34BC;PAIR; -> the 04 is the Zone for this Address, the Address can be any value as long as it starts with 20.

10;MiLightv1;20ADDRESS2;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;02;34BC;PAIR; -> the 02 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;03;34BC;PAIR; -> the 03 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;04;34BC;PAIR; -> the 04 is the Zone for this Address, the Address can be any value as long as it starts with 20.

And than I have to do for each bulb:
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=01;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=02;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=03;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=04;RGBW=8690;CMD=ON;

20;17;MiLightv1;ID=20ADDRESS2;SWITCH=01;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=02;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=03;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=04;RGBW=8690;CMD=ON;

Sorry for the many commands but I want to make sure that I understand the whole system, because the documentation is not very obvious to me.

And another question: Why does my FUT013 lamp not respond to RGBW but to RGB+CCT?
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Milight Zone Example

Post by sincze »

jannnfe wrote: Friday 02 February 2018 23:11 Thanks @Stuntteam for your reply.
If I understand this correctly:

10;MiLightv1;20ADDRESS1;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;02;34BC;PAIR; -> the 02 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;03;34BC;PAIR; -> the 03 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS1;04;34BC;PAIR; -> the 04 is the Zone for this Address, the Address can be any value as long as it starts with 20.

10;MiLightv1;20ADDRESS2;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;02;34BC;PAIR; -> the 02 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;03;34BC;PAIR; -> the 03 is the Zone for this Address, the Address can be any value as long as it starts with 20.
10;MiLightv1;20ADDRESS2;04;34BC;PAIR; -> the 04 is the Zone for this Address, the Address can be any value as long as it starts with 20.

And than I have to do for each bulb:
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=01;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=02;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=03;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=04;RGBW=8690;CMD=ON;

20;17;MiLightv1;ID=20ADDRESS2;SWITCH=01;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=02;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=03;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS2;SWITCH=04;RGBW=8690;CMD=ON;

Sorry for the many commands but I want to make sure that I understand the whole system, because the documentation is not very obvious to me.

And another question: Why does my FUT013 lamp not respond to RGBW but to RGB+CCT?
I have been down this milight road before. Gave the commands manually as you did., but the bulb just would not show up in domoticz. Back in the days. (different forum topic). Assuming your commands are right as I recognise them you could face a new challenge of the lights not showing up. . Just a heads up. If you have a spare esp use the Web interface solution as described before. You will be finished in 12 minutes
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Re: Milight Zone Example

Post by jannnfe »

Thank you @sincze for your help and answer. I will try it. I would also like to finally understand the complete system of Milight with rflink and the zones. Maybe I can help sometime and say if i am right with my commands above?
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Milight Zone Example

Post by sincze »

jannnfe wrote: Wednesday 07 February 2018 19:05 Thank you @sincze for your help and answer. I will try it. I would also like to finally understand the complete system of Milight with rflink and the zones. Maybe I can help sometime and say if i am right with my commands above?
Unfortunately I have no spare milight stuff around otherwhise I could have checked them for you. Never break a working setup :lol: however if I come across somebody that needs to setup this again at home I'll think of this post and report back. I can at least try. I have kept my spare ESP gateway in a special box just in case I run into problems again :D
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Milight Zone Example

Post by Stuntteam »

jannnfe wrote: Friday 02 February 2018 23:11 If I understand this correctly:

10;MiLightv1;20ADDRESS1;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
..
10;MiLightv1;20ADDRESS2;01;34BC;PAIR; -> the 01 is the Zone for this Address, the Address can be any value as long as it starts with 20.
..

And than I have to do for each bulb:
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=01;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=02;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=03;RGBW=8690;CMD=ON;
20;17;MiLightv1;ID=20ADDRESS1;SWITCH=04;RGBW=8690;CMD=ON;

Sorry for the many commands but I want to make sure that I understand the whole system, because the documentation is not very obvious to me.
-You select an address + zone number for a single bulb..
-You put the bulb in learning mode and send the pair command to learn that address+zone to the bulb
-You enter the ON command in the Domoticz/RFlink Learn device popup to tell Domoticz you use this address (Domoticz will then create the device and button for you)

You then do the next bulb, you have to change either the address or zone to a new value, until you have done all bulbs.

Note that:
-If you have 20 bulbs, you can put all 20 on the same address and zone.. a single command will switch all bulbs on/off
-If you have 20 bulbs, you can put all 20 on a different address with zone 1.. a single command will switch one bulb with the matching address/zone only
-If you have 20 bulbs, you can put 4 bulbs with the same address on zones 1,2,3,4.. a single command will switch one bulb with the matching address/zone only ..OR.. a single command will switch all 4 bulbs.. with the matching address and zone 0.
This is due to the fact that milight also has a zone 0 which will switch all bulbs that match just the address (the main on/off button on milight remotes).
This can be handy for example if you want to control 4 lamps individually in your living room.. but want to be able to turn all 4 lamps off with a single command. In terms of home automation software it does not make much of a difference, but if you have a 4 zone Milight remote and also want to use the buttons on a milight remote.
jannnfe wrote: Friday 02 February 2018 23:11 And another question: Why does my FUT013 lamp not respond to RGBW but to RGB+CCT?
That is something only milight people / the factory will know..
They might have made a batch to be compatible with the newer systems or the bulb is from one of the many clone factories etc.
As long as it works it is fine..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Re: Milight Zone Example

Post by jannnfe »

Many Thanks. That makes it clearer to me. I'll contact you again if I come across problems with something. Thank you for the effort!
jannnfe
Posts: 30
Joined: Tuesday 30 January 2018 0:27
Target OS: Linux
Domoticz version: Beta
Location: Germany
Contact:

Re: Milight Zone Example

Post by jannnfe »

This is not working for me.
I have two Bulbs on different Adresse and same Zone Number 1 but both Bulbs will turn on and off...
Bildschirmfoto 2018-06-15 um 13.07.54.png
Bildschirmfoto 2018-06-15 um 13.07.54.png (9.29 KiB) Viewed 2482 times
Bildschirmfoto 2018-06-15 um 13.07.46.png
Bildschirmfoto 2018-06-15 um 13.07.46.png (9.92 KiB) Viewed 2482 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest