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. Hardware
  3. How to build an overridable MySensors relay based device (e.g. lamp with manual switch)

How to build an overridable MySensors relay based device (e.g. lamp with manual switch)

Scheduled Pinned Locked Moved Hardware
22 Posts 8 Posters 5.8k Views 9 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.
  • P Offline
    P Offline
    pouniok
    wrote on last edited by
    #10
    This post is deleted!
    1 Reply Last reply
    0
    • G Offline
      G Offline
      ghiglie
      wrote on last edited by
      #11

      Hi! How did it end?
      Obtaining the WAF is the most part of my tinkering... I'm going for Sonoff ESP-based products to drive lights, mixing up the actuators via Home Assistant.

      atmega328p serial killer
      HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

      A 1 Reply Last reply
      0
      • G ghiglie

        Hi! How did it end?
        Obtaining the WAF is the most part of my tinkering... I'm going for Sonoff ESP-based products to drive lights, mixing up the actuators via Home Assistant.

        A Offline
        A Offline
        anonymouslemming
        wrote on last edited by
        #12

        @ghiglie
        It's stalled a bit due to work commitments. Prototype does everything EXCEPT keep the OpenHAB status in sync. I can control from openhab or from a separate node (that's just a switch).

        I need to update the code on the light node to keep openhab in sync and it'll be done. Then on to trying to build hardware that'll suit.

        G D 2 Replies Last reply
        0
        • A anonymouslemming

          @ghiglie
          It's stalled a bit due to work commitments. Prototype does everything EXCEPT keep the OpenHAB status in sync. I can control from openhab or from a separate node (that's just a switch).

          I need to update the code on the light node to keep openhab in sync and it'll be done. Then on to trying to build hardware that'll suit.

          G Offline
          G Offline
          ghiglie
          wrote on last edited by
          #13

          @anonymouslemming I understand. I'll track this topic! ;)

          atmega328p serial killer
          HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

          1 Reply Last reply
          0
          • A anonymouslemming

            @ghiglie
            It's stalled a bit due to work commitments. Prototype does everything EXCEPT keep the OpenHAB status in sync. I can control from openhab or from a separate node (that's just a switch).

            I need to update the code on the light node to keep openhab in sync and it'll be done. Then on to trying to build hardware that'll suit.

            D Offline
            D Offline
            doctor64
            wrote on last edited by
            #14

            @anonymouslemming Sorry for self-advertising, but i'm think my project https://forum.mysensors.org/topic/7417/ikea-varv-lamp-and-mysensors exactly what you wish - lamp with local control and, of course, OpenHab status automatically updated on flick a switch.

            A 1 Reply Last reply
            0
            • D doctor64

              @anonymouslemming Sorry for self-advertising, but i'm think my project https://forum.mysensors.org/topic/7417/ikea-varv-lamp-and-mysensors exactly what you wish - lamp with local control and, of course, OpenHab status automatically updated on flick a switch.

              A Offline
              A Offline
              anonymouslemming
              wrote on last edited by
              #15

              @doctor64
              Hey - that does look really really good! I think I looked at it early in the project as inspiration.

              The lamps I'm using (http://www.ikea.com/gb/en/products/lighting/table-lamps/fado-table-lamp-white-art-10096375/) have in-line switches and there's no sensible space in the body to mount anything, so I need something that controls power at the plug socket end.

              I also want them at the plug socket end just for more flexibility in the longer term so that they can drive things other than just lamps.

              D 1 Reply Last reply
              0
              • A anonymouslemming

                @doctor64
                Hey - that does look really really good! I think I looked at it early in the project as inspiration.

                The lamps I'm using (http://www.ikea.com/gb/en/products/lighting/table-lamps/fado-table-lamp-white-art-10096375/) have in-line switches and there's no sensible space in the body to mount anything, so I need something that controls power at the plug socket end.

                I also want them at the plug socket end just for more flexibility in the longer term so that they can drive things other than just lamps.

                D Offline
                D Offline
                doctor64
                wrote on last edited by
                #16

                @anonymouslemming Hmm, you wish to use existing switch on mains cord? Or have some socket block with control is enough? I have use old one-for-all remote-controller socket for that - it have button, place for LED, nice case and i put inside arduino pro mini and 5 volt supply, using existing relay.
                alt text

                You are from Great Britain, right? So you have different power socket, but, may be you can find something similar?

                1 Reply Last reply
                0
                • dbemowskD Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #17

                  I use the in-wall switches that I designed to control sonoffs around the room. The switch is basically a MySensorized scene controller. It does not have any relays or do any other kind of local switching. It simply talks to my Vera controller and the Vera controller handles the logic. Surprisingly, from pushing the switch to the light turning on, it is a nearly unnoticeable fraction of a second. When you think about what has to happen, that is awesome.

                  When the switch is pushed, it sends a radio signal to the gateway which tells the Vera controller that I pushed the switch. The Vera controller looks up the logic from my programmed scene and sends a wifi HTTP request to my Sonoff. The Sonoff then needs to process that and turn on the relay. ALL OF THAT in a fraction of a second.

                  Oh, and the WAF is a thumbs up.

                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                  G A 2 Replies Last reply
                  0
                  • dbemowskD dbemowsk

                    I use the in-wall switches that I designed to control sonoffs around the room. The switch is basically a MySensorized scene controller. It does not have any relays or do any other kind of local switching. It simply talks to my Vera controller and the Vera controller handles the logic. Surprisingly, from pushing the switch to the light turning on, it is a nearly unnoticeable fraction of a second. When you think about what has to happen, that is awesome.

                    When the switch is pushed, it sends a radio signal to the gateway which tells the Vera controller that I pushed the switch. The Vera controller looks up the logic from my programmed scene and sends a wifi HTTP request to my Sonoff. The Sonoff then needs to process that and turn on the relay. ALL OF THAT in a fraction of a second.

                    Oh, and the WAF is a thumbs up.

                    G Offline
                    G Offline
                    ghiglie
                    wrote on last edited by
                    #18

                    @dbemowsk I was reading your thread... very inspirational. My main problem is can't change (for now!) the in-wall switches, so trying to figure out how to "decline" them.

                    atmega328p serial killer
                    HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

                    dbemowskD 1 Reply Last reply
                    0
                    • G ghiglie

                      @dbemowsk I was reading your thread... very inspirational. My main problem is can't change (for now!) the in-wall switches, so trying to figure out how to "decline" them.

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #19

                      @ghiglie There can be some issues in replacing normal switches with these kinds of switches. The main thing with ones that I built require a 110v (would work with 220v) line in the box where the switch is going to be located. Depending when the house was constructed, some wall switch boxes only have the switch line coming to the box. If this is the case then you are trying to re-wire things up where the switched device (light, fan , etc...) is located to send your power through the old switched line. That can be a pain if you don't know what you are doing. When doing that kind of re-wiring, I recommend labels, labels, labels to tell how things should be re-wired if you need to get it back to the way it was.

                      One other issue you can run into is that the box may be too shallow to where the switch won't fit all the way in with the wire nuts or connectors. If that is the case, you may need to cut out the old box and replace it with a new one.

                      If you are comfortable with remodeling and house wiring, these may not be issues for you.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        I use the in-wall switches that I designed to control sonoffs around the room. The switch is basically a MySensorized scene controller. It does not have any relays or do any other kind of local switching. It simply talks to my Vera controller and the Vera controller handles the logic. Surprisingly, from pushing the switch to the light turning on, it is a nearly unnoticeable fraction of a second. When you think about what has to happen, that is awesome.

                        When the switch is pushed, it sends a radio signal to the gateway which tells the Vera controller that I pushed the switch. The Vera controller looks up the logic from my programmed scene and sends a wifi HTTP request to my Sonoff. The Sonoff then needs to process that and turn on the relay. ALL OF THAT in a fraction of a second.

                        Oh, and the WAF is a thumbs up.

                        A Offline
                        A Offline
                        anonymouslemming
                        wrote on last edited by
                        #20

                        @dbemowsk

                        Hmm - that's interesting. I've been looking at the Sonoff stuff since you posted this, thanks!

                        One of my goals is to have no Internet connectivity to my devices, and it looks like there are some firmware options that would let me achieve that. So that's a plus.

                        The minus so far is that I can't find anything about range extenders / relay (signal, not power) for these. Two of my early use cases are out of WiFi range, so I'd like to be able to have something between the shed and the controller that acts as a relay. One of the things that attracted me to MySensors is that nodes can act as relays for other nodes.

                        Do you know if that's possible with Sonoff ?

                        dbemowskD 1 Reply Last reply
                        0
                        • A anonymouslemming

                          @dbemowsk

                          Hmm - that's interesting. I've been looking at the Sonoff stuff since you posted this, thanks!

                          One of my goals is to have no Internet connectivity to my devices, and it looks like there are some firmware options that would let me achieve that. So that's a plus.

                          The minus so far is that I can't find anything about range extenders / relay (signal, not power) for these. Two of my early use cases are out of WiFi range, so I'd like to be able to have something between the shed and the controller that acts as a relay. One of the things that attracted me to MySensors is that nodes can act as relays for other nodes.

                          Do you know if that's possible with Sonoff ?

                          dbemowskD Offline
                          dbemowskD Offline
                          dbemowsk
                          wrote on last edited by
                          #21

                          @anonymouslemming I am not even sure this would work because I am not sure about how the 433MHz side of the Sonoff RF's work, but what about adding a repeater of some sort to your setup. Something like this
                          http://www.dx.com/p/dc-12v-2a-433mhz-ni-hi-wireless-signal-repeater-white-454782?tc=USD&gclid=CjwKCAjwranNBRBhEiwASu908AcpaXRztfgkD8tTEGI-DKxVMZWfywYffgjebQVSD5gl9fvpyAfcsBoCz1UQAvD_BwE#.WaqirHWGNpg

                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            drock1985
                            wrote on last edited by
                            #22

                            I know this may sound weird, but I would recommend just going with the basic Sonoff switch and skip the MySensors part.

                            I build a lamp controlled by MySensors a long time ago, has external Tact button for on/off. Works great, took a while to build and I have an ugly box screwed to my lamp now that houses it all.

                            I wanted to build another, but didn't want it be be aesthetically displeasing. I ended up using these (https://www.itead.cc/sonoff-wifi-wireless-switch.html) and they are everything in one small package. You have wifi, a tact button for manual on/off, and it will report to any home automation system using MQTT after flashing some customer firmware (https://github.com/arendst/Sonoff-Tasmota). Just cut the power cable, screw into appropriate terminals and it's all good to go.

                            As much as I love MySensors; for this type of project I think there is a better solution.

                            My Projects
                            2 Door Chime Sensor
                            Washing Machine Monitor

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


                            18

                            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