Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Mi-Light controller for Mysensors

Mi-Light controller for Mysensors

Scheduled Pinned Locked Moved My Project
69 Posts 15 Posters 38.2k Views 27 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cliff KarlssonC Offline
    Cliff KarlssonC Offline
    Cliff Karlsson
    wrote on last edited by
    #25

    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.

    1 Reply Last reply
    0
    • Łukasz KostrzewaŁ Offline
      Łukasz KostrzewaŁ Offline
      Łukasz Kostrzewa
      wrote on last edited by
      #26

      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

      T 1 Reply Last reply
      0
      • Łukasz KostrzewaŁ Łukasz Kostrzewa

        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

        T Offline
        T Offline
        ted
        wrote on last edited by
        #27

        @Ł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.

        1 Reply Last reply
        0
        • Łukasz KostrzewaŁ Offline
          Łukasz KostrzewaŁ Offline
          Łukasz Kostrzewa
          wrote on last edited by
          #28

          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.

          1 Reply Last reply
          0
          • Łukasz KostrzewaŁ Offline
            Łukasz KostrzewaŁ Offline
            Łukasz Kostrzewa
            wrote on last edited by
            #29

            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

            T 1 Reply Last reply
            0
            • Łukasz KostrzewaŁ Offline
              Łukasz KostrzewaŁ Offline
              Łukasz Kostrzewa
              wrote on last edited by
              #30

              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

              1 Reply Last reply
              0
              • Łukasz KostrzewaŁ Łukasz Kostrzewa

                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

                T Offline
                T Offline
                ted
                wrote on last edited by
                #31

                @Ł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.

                1 Reply Last reply
                0
                • Łukasz KostrzewaŁ Offline
                  Łukasz KostrzewaŁ Offline
                  Łukasz Kostrzewa
                  wrote on last edited by
                  #32

                  Thx for answer

                  I am noob in programming. Maybe You can post an example how to modify the code?

                  Best regards

                  1 Reply Last reply
                  0
                  • alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #33

                    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

                    1 Reply Last reply
                    0
                    • Łukasz KostrzewaŁ Offline
                      Łukasz KostrzewaŁ Offline
                      Łukasz Kostrzewa
                      wrote on last edited by
                      #34

                      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

                      1 Reply Last reply
                      0
                      • Łukasz KostrzewaŁ Offline
                        Łukasz KostrzewaŁ Offline
                        Łukasz Kostrzewa
                        wrote on last edited by
                        #35

                        Anybody?

                        1 Reply Last reply
                        0
                        • Cliff KarlssonC Offline
                          Cliff KarlssonC Offline
                          Cliff Karlsson
                          wrote on last edited by
                          #36

                          I would also like this to work with domoticz but as I lack the skills nececary I am now waiting on the next RFlink firmware witch is adding the feature of controlling mi-lights.
                          I still think that the node/repeater as descripbed in this topic would be better but as I have no options the RFlink is better than using the standard milight bridge an any way.

                          I have added a NRF24L01 PA to my RFlink gateway and am hoping that the range will cover my whole house.

                          1 Reply Last reply
                          0
                          • Łukasz KostrzewaŁ Offline
                            Łukasz KostrzewaŁ Offline
                            Łukasz Kostrzewa
                            wrote on last edited by
                            #37

                            Thx for info
                            Best regards

                            1 Reply Last reply
                            0
                            • Łukasz KostrzewaŁ Offline
                              Łukasz KostrzewaŁ Offline
                              Łukasz Kostrzewa
                              wrote on last edited by
                              #38

                              I have new problem.
                              I paired wrong bulb and now I can't unpair it.
                              How to do that?
                              Best regards

                              T 1 Reply Last reply
                              0
                              • Iraklis KourtisI Offline
                                Iraklis KourtisI Offline
                                Iraklis Kourtis
                                wrote on last edited by
                                #39

                                Hi Ted,

                                Your project looks really amazing and I think it is exactly what I was looking for.
                                I want to change my lighting at home. I am thinking of adding 8 LED strips that will be controlled by 2 x 4 Mi-Light remote controls and 2 x wifi bridges. As I would like to still be able to use the wall switches to turn them on/off I was thinking of using your solution. Do you think it will be feasible with your project? Also is there a way to reduce the wifi bridges to 1 instead of having 2?

                                Thank you for this great project!

                                Iraklis

                                T 1 Reply Last reply
                                0
                                • Łukasz KostrzewaŁ Łukasz Kostrzewa

                                  I have new problem.
                                  I paired wrong bulb and now I can't unpair it.
                                  How to do that?
                                  Best regards

                                  T Offline
                                  T Offline
                                  ted
                                  wrote on last edited by
                                  #40

                                  @Łukasz-Kostrzewa
                                  sorry for the delay. you need to send the unpair command right after turning on the light. see https://hackaday.io/project/5888-reverse-engineering-the-milight-on-air-protocol

                                  1 Reply Last reply
                                  0
                                  • Iraklis KourtisI Iraklis Kourtis

                                    Hi Ted,

                                    Your project looks really amazing and I think it is exactly what I was looking for.
                                    I want to change my lighting at home. I am thinking of adding 8 LED strips that will be controlled by 2 x 4 Mi-Light remote controls and 2 x wifi bridges. As I would like to still be able to use the wall switches to turn them on/off I was thinking of using your solution. Do you think it will be feasible with your project? Also is there a way to reduce the wifi bridges to 1 instead of having 2?

                                    Thank you for this great project!

                                    Iraklis

                                    T Offline
                                    T Offline
                                    ted
                                    wrote on last edited by
                                    #41

                                    @Iraklis-Kourtis
                                    The controller is all you need to control the lights. It does not need wifi bridge

                                    1 Reply Last reply
                                    0
                                    • CrankyCoderC Offline
                                      CrankyCoderC Offline
                                      CrankyCoder
                                      wrote on last edited by
                                      #42

                                      Has this been converted to 2.0?

                                      Also, to build the controller for this i don't need anything special other than the arduino + nrf24l01 correct? I am VERY interested in this

                                      Home Automation Tinkerer
                                      www.CrankyCoder.net

                                      Controller: HomeAssistant in Kubernetes
                                      Gateway: MQTTClientGateway
                                      MySensors: 2.3

                                      1 Reply Last reply
                                      0
                                      • CrankyCoderC Offline
                                        CrankyCoderC Offline
                                        CrankyCoder
                                        wrote on last edited by
                                        #43

                                        i got 2 of my milight bulbs in today. Just wondering if anyone is still using this?

                                        Home Automation Tinkerer
                                        www.CrankyCoder.net

                                        Controller: HomeAssistant in Kubernetes
                                        Gateway: MQTTClientGateway
                                        MySensors: 2.3

                                        1 Reply Last reply
                                        0
                                        • Cliff KarlssonC Offline
                                          Cliff KarlssonC Offline
                                          Cliff Karlsson
                                          wrote on last edited by
                                          #44

                                          @Jason-Brunk said:

                                          n today. Just wondering if anyone is still using this?

                                          I would like to use this solution as it seams to be really great to have both a NRF/Mi-light-Repeater for every "node". But my skils are not enough to make this work with RGB-strips/bulbs and to have it working with domoticz. I am using the standard Domoticz way of controllign them using the original mi-light gateways and have also experimented with RF-link mi-light control.

                                          But my dream-scenario is that some nice coding-wiz will post a complete solution that even newbies can integrate this in this forum-thread. But I would not count on it.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular