Mi-Light controller for Mysensors
-
Ok, I meant to say that I had not got any bridge for the mi-light yet. In the first post it is mentioned that you need to pair using a bridge.
-
Ok, I meant to say that I had not got any bridge for the mi-light yet. In the first post it is mentioned that you need to pair using a bridge.
@Cliff-Karlsson
thanks, the original post was updated to clarify this. -
Thanks, next stupid question. How do I control the rgb/dimming features of the lamp? I got a ordinary on/off lamp under device in domoticz.
-
Thanks, next stupid question. How do I control the rgb/dimming features of the lamp? I got a ordinary on/off lamp under device in domoticz.
@Cliff-Karlsson
You have to program your controller to produce the command string and send it to the node. The command string is transmitted as a ASCII string to the 'custom' node. See https://hackaday.io/project/5888-reverse-engineering-the-milight-on-air-protocol for the command format. Sorry I don't use domoticz. -
Do I need to unpair the bulbs if I want to try pairing again? It got paired as a regular on/of bulb the first time. But I think I found out that I could add mi-lights using a dummy switch. But The bulb are not pairing.
-
Do I need to unpair the bulbs if I want to try pairing again? It got paired as a regular on/of bulb the first time. But I think I found out that I could add mi-lights using a dummy switch. But The bulb are not pairing.
@Cliff-Karlsson
I don't know. Let us know what you find out. :)
To unpair, you turn on the power to the bulb and send 'off' command within seconds. -
Ok, I tried with several bulbs now. First time I managed to pair as on/off switch but after that I had no luck. If anyone is using this with domoticz please describe the procedure of how to add the bulbs.
-
I forgot to ask, but what controller have you been trying them out on? And are there any limitation to how many bulbs one repeater-node can control? I recall reading something about one original controller only being able to control 4 bulbs or similar.
-
Ok, I think I found a clue :), S_CUSTOM seams not to be supported by domoticz so I changed it to "gw.present(0, S_RGBW_LIGHT);"
So now everything looks ok with a RGB selector and everything. But I still can only turn on and off the bulb and am not able to dim or set colors. So I guess there is some more serious witchcraft going on thats over my head. -
I forgot to ask, but what controller have you been trying them out on? And are there any limitation to how many bulbs one repeater-node can control? I recall reading something about one original controller only being able to control 4 bulbs or similar.
The milight uses a speical command, it is not likely to be compatible with the standard RGB light module in domoticz. The information about the milight protocol can be found here: https://hackaday.io/project/5888-reverse-engineering-the-milight-on-air-protocol
I used openhab to assemble the command string for S_CUSTOM. Using the S_CUSTOM, you can control as many bulb as you want (by using different remote ID field in the milight protocol), although I only have 1 bulb. The node receives the milight protocol in plain ASCII string and convert the string to HEX before sending it out to the bulb. Hope this helps.
-
Ok, thanks for the help but it seams that I will have to use the standard-wifi bridges for now until someone smarter than me fixes the domoticz support.
-
Thank You for this solutin. Everythin works great but...
I was able to pair with one bulb but I I do not know what to do to pair with others?
Any idea?
Best regard
-
Thank You for this solutin. Everythin works great but...
I was able to pair with one bulb but I I do not know what to do to pair with others?
Any idea?
Best regard
@Łukasz-Kostrzewa
Each bulb is associated with a particular 'remote ID'. Bulbs having the same remote ID will repond to all commands having the same remote ID. Therefore, you can simply pick a different(or the same) remote ID to pair with a second bulb, and the second bulb can be controlled separately(or simultaneously) with the first one. I have not tried it but that should work according to the mi-bulb protocol. -
Thax for reply
But I don't understand :(
I don't have Milight bridge and I paired one Milight bulb to Dummy switch I have in my Domoticz My sensors.
And this works great but there is only one dummy switch.
When I add to arduino code one more (gw.present(0, S_LIGHT);) in Domoticz there is another Dummy switch but it controls the same lights then the first one. I don't know how to add (I don;t know it is possible) a second dummy to control another bulb without milight bridge. -
Hi Ted
I understand now:)
I changed remote id to diffrent values but now my first dummy switch paired to my first bulb doesn't work.
I need to have another arduino to control another bulb?
Best regards -
Another question...
Is there possibility to add to this code another one to control DHT11 temp and humidity sensor (from my sensors library)
I wanted to have 2 thing in one:)
Best regards -
Hi Ted
I understand now:)
I changed remote id to diffrent values but now my first dummy switch paired to my first bulb doesn't work.
I need to have another arduino to control another bulb?
Best regards@Łukasz-Kostrzewa
The way I'd suggest is to modify the program to add more switches, each switch uses a different remote ID. Alternatively, you can use your controller to generate the necessary command string (with custom ID specific to the bulbs you want to control) and send it to the custom node as an ASCII string. The custom node will relay whatever command it receives to the bulbs. -
Thx for answer
I am noob in programming. Maybe You can post an example how to modify the code?
Best regards
-
Excellent project! I have implemented reversed engineering for (1) some switches (2) LightWaveRF sockets. I tried to implemented Mi-Light with Mysensors but I having spent some time I decided to just buy a WiFi hub ($7) as it is natively supported in Domoticz.
Mi-Light is an excellent product price wise compare to Philips Hue
-
Hi
Anyone have idea how to modify the code to pair domoticz to more than one bulb?
With actual code I am able to ON/OFF only one bulb :(Any idea?
Best regards