Milight directly with nRF24Lo1 without RFlink / arduino mega

Moderator: leecollings

Post Reply
CaptainSlow
Posts: 60
Joined: Thursday 08 December 2016 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bussum
Contact:

Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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 5040 times
Would love to get this working...lean and mean....

willem
____________________________________________________________________
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
CaptainSlow
Posts: 60
Joined: Thursday 08 December 2016 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bussum
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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 5001 times
____________________________________________________________________
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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?
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
CaptainSlow
Posts: 60
Joined: Thursday 08 December 2016 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bussum
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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 4970 times
____________________________________________________________________
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post by NietGiftig »

Maybe the milight dev page has some usable code
http://www.limitlessled.com/dev/
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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 !
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
gerardwr
Posts: 32
Joined: Saturday 28 January 2017 11:30
Target OS: -
Domoticz version:
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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.
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Milight directly with nRF24Lo1 without RFlink / arduino mega

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest