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. OpenHardware.io
  3. 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

Scheduled Pinned Locked Moved OpenHardware.io
mqttsonoffhome assistanesp8266
93 Posts 25 Posters 28.0k Views 20 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.
  • Jonathan CaesJ Jonathan Caes

    @efflon Do you know how I can setup the sonoff gateway on the Vera Edge? I used the MySensors plugin to add the sonoff to the network but can't get the relay to toggle.. :/ Help is much appreciated!! Thanks!!

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

    @Jonathan-Caes said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

    Do you know how I can setup the sonoff gateway on the Vera Edge?

    I am using a Vera Plus. I did not go the route of MySensors for my Sonoffs. I use the ESP Easy firmware with a slightly modified Vera plugin. Here is my BLOG post on how to do it.
    https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/

    You could still go the MySensors route. I just figured I'd show another alternative to this.

    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/

    sam9sS 1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan Gatzke
      wrote on last edited by
      #66

      It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

      dbemowskD gohanG 2 Replies Last reply
      0
      • J Jan Gatzke

        It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

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

        @Jan-Gatzke It is my understanding that ESP Easy can send and receive MQTT messages, couldn't you just use a MySensors MQTT gateway if you wanted to keep it on the MySensors path?

        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/

        J 1 Reply Last reply
        0
        • dbemowskD dbemowsk

          @Jan-Gatzke It is my understanding that ESP Easy can send and receive MQTT messages, couldn't you just use a MySensors MQTT gateway if you wanted to keep it on the MySensors path?

          J Offline
          J Offline
          Jan Gatzke
          wrote on last edited by
          #68

          @dbemowsk You cannot because MQTT is just a transport and not a strict data format. You can however use MySenSors MQTT + ESP Easy MQTT + a broker + node red + a controller. Node Red can do data conversions and integrate everything.

          dbemowskD 1 Reply Last reply
          0
          • J Jan Gatzke

            @dbemowsk You cannot because MQTT is just a transport and not a strict data format. You can however use MySenSors MQTT + ESP Easy MQTT + a broker + node red + a controller. Node Red can do data conversions and integrate everything.

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

            @Jan-Gatzke I was just speculating. I do not use MQTT, so I am by no means an authority on the subject.

            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
            • J Jan Gatzke

              It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #70

              @Jan-Gatzke said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

              It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

              There is no real benefit to have the sonoff running mysensors instead of other firmwares, if your controller is able to communicate over mqtt to switch on/off the relay, you are fine

              J Nca78N 2 Replies Last reply
              0
              • gohanG gohan

                @Jan-Gatzke said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

                It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

                There is no real benefit to have the sonoff running mysensors instead of other firmwares, if your controller is able to communicate over mqtt to switch on/off the relay, you are fine

                J Offline
                J Offline
                Jan Gatzke
                wrote on last edited by
                #71

                @gohan I know some controller are aware of ESP Easy via MQTT. If you controller does not support this directly, you have to integrate it manually (with node red). In my opinion scenarios, where MySensors with ESP Easy frontend would be of use, do still exist.

                1 Reply Last reply
                0
                • gohanG gohan

                  @Jan-Gatzke said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

                  It's a shame that we cannot have both, mysensors and the ESP Easy stuff. There has been a project for this: https://github.com/letscontrolit/ESPEasyMySensors :disappointed_relieved:

                  There is no real benefit to have the sonoff running mysensors instead of other firmwares, if your controller is able to communicate over mqtt to switch on/off the relay, you are fine

                  Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by
                  #72

                  @gohan said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

                  There is no real benefit to have the sonoff running mysensors instead of other firmwares, if your controller is able to communicate over mqtt to switch on/off the relay, you are fine

                  IMHO there is one, when your controller is down, gateway is down or whatever, you could still have direct control or the light switch from a MySensors button with node to node communication.

                  1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #73

                    How do you do that if the sonoff is only having wifi?

                    Nca78N 1 Reply Last reply
                    0
                    • gohanG gohan

                      How do you do that if the sonoff is only having wifi?

                      Nca78N Offline
                      Nca78N Offline
                      Nca78
                      Hardware Contributor
                      wrote on last edited by
                      #74

                      @gohan said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

                      How do you do that if the sonoff is only having wifi?

                      Ah yes in that case you can't and yes there's no benefit :)

                      1 Reply Last reply
                      0
                      • gohanG Offline
                        gohanG Offline
                        gohan
                        Mod
                        wrote on last edited by
                        #75

                        A wired button would be a much fail safe option for sonoffs 😀

                        J 1 Reply Last reply
                        1
                        • gohanG gohan

                          A wired button would be a much fail safe option for sonoffs 😀

                          J Offline
                          J Offline
                          Jan Gatzke
                          wrote on last edited by
                          #76

                          @gohan won't this option miss some features? :D

                          gohanG 1 Reply Last reply
                          0
                          • J Jan Gatzke

                            @gohan won't this option miss some features? :D

                            gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #77

                            @Jan-Gatzke for a sonoff there aren't many options and also a wired button you are pretty sure it would always work. 😀

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

                              For the Sonoffs, you could wire an external button directly to the onboard button which is on GPIO 0, or you could wire it to GPIO 14 which is broken out on the programming header on most Sonoffs. Some older Sonoffs didn't have GPIO 14 on that header. Once you have a button or switch wired on, you can then change the code or do some firmware scripting depending which flavor of firmware you use.

                              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

                                @Jonathan-Caes said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

                                Do you know how I can setup the sonoff gateway on the Vera Edge?

                                I am using a Vera Plus. I did not go the route of MySensors for my Sonoffs. I use the ESP Easy firmware with a slightly modified Vera plugin. Here is my BLOG post on how to do it.
                                https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/

                                You could still go the MySensors route. I just figured I'd show another alternative to this.

                                sam9sS Offline
                                sam9sS Offline
                                sam9s
                                wrote on last edited by
                                #79

                                @dbemowsk Do you know if there is a way to use vera edge / plus with Tasmota firmware instead of EasyESP??

                                dbemowskD 1 Reply Last reply
                                0
                                • sam9sS sam9s

                                  @dbemowsk Do you know if there is a way to use vera edge / plus with Tasmota firmware instead of EasyESP??

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

                                  @sam9s I have never played with Tasmota, so I have to say that I don't know. A Vera plugin would have to be coded or modified as I did with the HTTP Switch plugin to make it work if there is not one out there already. I am assuming that you looked at my blog post on the ESP Easy way.

                                  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
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #81

                                    Can the Vera plug in work with mqtt?

                                    dbemowskD 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      Can the Vera plug in work with mqtt?

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

                                      @gohan Here is a plugin for MQTT using Vera. You would still need to have an MQTT Broker set up though. I am surprised that there is not an active MQTT plugin for Vera in the plugins section. Didn't find anything when I did a search for MQTT.

                                      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
                                      • gohanG Offline
                                        gohanG Offline
                                        gohan
                                        Mod
                                        wrote on last edited by
                                        #83

                                        I was just asking since tasmota works great on mqtt

                                        1 Reply Last reply
                                        0
                                        • tripyT Offline
                                          tripyT Offline
                                          tripy
                                          wrote on last edited by
                                          #84

                                          I will just leave that here for other like me that wondered for hours why they could flash their sonoff, but it did not react once plugged to the main.

                                          You need to setup your arduino with DOUT as flash mode.
                                          Other mode will flash without errors, but the device will appear bricked.
                                          My settings where:
                                          0_1517047090707_sonoff flashing settings.png

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


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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