Page 1 of 1

Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Saturday 14 January 2017 19:36
by CaptainSlow
L & G's

I was wandering if anybody has exprience with connection milights directly (without RFlink gateway, arduino mega) to the raspberry using the software of this german guy. I installed the stuff without any problems and now I need to now how to create the devices triggering scripts or something sending the commands to the milight buldbs via the nRF24.

http://torsten-traenkner.de/wissen/smar ... ilight.php
raspberry_pi_nrf24l01.jpg
raspberry_pi_nrf24l01.jpg (219.94 KiB) Viewed 5043 times
Would love to get this working...lean and mean....

willem

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Monday 16 January 2017 13:59
by CaptainSlow
I just bought a couple of nRF24L01 from alieexpress together with the handheld remote from milight. I thought I might give it go to get this working.
I created a dummy switch in Domoticz quit simple and with the Openmilight process running on the raspberry I should be able to initiate simple scripts allowing me to send any milight command to the bulbs.

Any thoughts on this?..do miss something completely...?

thx in advance

willem
switch.PNG
switch.PNG (291.43 KiB) Viewed 5004 times

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Monday 16 January 2017 18:56
by NietGiftig
CaptainSlow wrote: ..do miss something completely...?
Yes I would think so.
What software/drivers are you using to tell l the nRF24Lo1 what to send/recieve
For example like the software in the RFLink/Arduino

Or do you expect that the raspberry does this for you without you telling how to do this?

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Monday 16 January 2017 21:30
by CaptainSlow
Well,..offcourse i'm not an expert but I do have openlight software using the RF24 libraries running. I can start openlight and put it in listeningn and sending mode. I added a screenshot. You can find the whole article here

http://torsten-traenkner.de/wissen/smar ... ilight.php

I was thinking if I create dummy switch intiating a script with the command I might be in the ballpark but maybe I'm wrong....
I just ordered the radiochips and the remote from milight. I need the remote to identify the pairing link id and I should be able to do this with the raspberry with openmilihgt in listening mode.
openlight.PNG
openlight.PNG (23.03 KiB) Viewed 4973 times

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Tuesday 17 January 2017 0:25
by NietGiftig
Maybe the milight dev page has some usable code
http://www.limitlessled.com/dev/

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Tuesday 14 February 2017 20:29
by tontze
Very interesting topic, i just ordered few milight rgb´s and wifi controller and wall switch to control. Please keep us updated ! Good luck !

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Wednesday 15 February 2017 15:24
by gerardwr
CaptainSlow wrote:I just bought a couple of nRF24L01 from alieexpress together with the handheld remote from milight. I thought I might give it go to get this working.
I created a dummy switch in Domoticz quit simple and with the Openmilight process running on the raspberry I should be able to initiate simple scripts allowing me to send any milight command to the bulbs.

Any thoughts on this?..do miss something completely...?
Did not try this on the RPI, but I have used the openmilight code on an Arduino + NRF24L01 transceiver, and that worked.

Sidenote : The openmilight is limited to sending the older Milight protocol (like RGBW) and does not support the newer RGBWW protocol. The RGBWW protocol is encrypted, and the encryption method is not yes re-engineered.

Since I do not have an RGBW lamp or controller I used the Milight iBox1 for testing. There are 2 ways to instruct the Ibox to send the RGBW protocol:
- use the Milight3.0 app,select the RGBW remote, and push the buttons
- Use Domoticz, configure the RGBW light, and push the buttons

In both cases the Arduino with the Openmilight sketch receives the Milight RGBW command sent by the iBox, something like:

Code: Select all

B0 08 61 15 00 01 E8 ............
B0 08 61 15 00 01 E9 .........
B0 08 61 18 00 0F EA ..
B0 08 61 18 00 0F EB ...
I assume the code on the RPi works in a similar way.

But you will need additional steps to "connect" the openmilight code on the Rpi to Domoticz, like a script something like:
- if openmilight receives a valid RGBW command then send a JSON to Domoticz to activate a dummy switch.

And a similar script to activate the openmilight send routine.

Let us know how it goes.

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Posted: Tuesday 04 April 2017 9:19
by burton666
I have been searching and trying alot of alternatives and the best I have found is "atomik controller". Same procedure as the alternative in this thread, you wire a NRF2401+ radio to a raspberry pi (an old Rpi 1 works great)

https://bitbucket.org/CanadianRepublica ... ontroller/

In the link there is a download-link for an sdcard image that you just plug in your rpi (you can also install everything manually if you have the skills).

When complete you can log in to a webgui and pair/unpair lights directly from the webgui. No original controller or mobile is needed. You can also then use a script to turn on/off/dim change color etc. from domoticz.

Only thing I remember was a little problematic was how to set it all up the first time as I missed one step. You have to add lightbulb, create a zone to add the bulb to and also create a remote and add it to the zone. Everything is done in the gui.