Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

💬 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.
  • 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
                          • tripyT tripy

                            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 Offline
                            K Offline
                            kalle
                            wrote on last edited by
                            #85

                            @tripy yes, you are absolute right - you need to set the flash Mode to DOUT for flashing the newer SONOFF generation (the SONOFF's with the hidden green LED).

                            1 Reply Last reply
                            0
                            • vladimirV Offline
                              vladimirV Offline
                              vladimir
                              wrote on last edited by
                              #86

                              Hello!
                              Maybe someone here has a code for Sonoff RF with support 433 MHz receiver?
                              alt text

                              In my opinion, paired with a wireless wall switch, this will turn out to be quite a cheap and convenient solution for lighting control.
                              alt text
                              alt text

                              The cost of a set of relay and switch about 10 dollars.

                              1 Reply Last reply
                              0
                              • electrikE Offline
                                electrikE Offline
                                electrik
                                wrote on last edited by
                                #87

                                Did you try this?
                                https://github.com/arendst/Sonoff-Tasmota

                                vladimirV 1 Reply Last reply
                                0
                                • electrikE electrik

                                  Did you try this?
                                  https://github.com/arendst/Sonoff-Tasmota

                                  vladimirV Offline
                                  vladimirV Offline
                                  vladimir
                                  wrote on last edited by
                                  #88

                                  @electrik Now I just read the description of this firmware. To do this, I need to understand how to work with MQTT. I hoped to find a simpler solution. Ethernet gateway is much easier to connect.:man-shrugging:

                                  gohanG 1 Reply Last reply
                                  0
                                  • electrikE Offline
                                    electrikE Offline
                                    electrik
                                    wrote on last edited by
                                    #89

                                    Mqtt Is really easy to use in fact. Just follow a tutorial to install mosquitto and you're ready to go.
                                    It also depends on your controller of course

                                    vladimirV 1 Reply Last reply
                                    0
                                    • electrikE electrik

                                      Mqtt Is really easy to use in fact. Just follow a tutorial to install mosquitto and you're ready to go.
                                      It also depends on your controller of course

                                      vladimirV Offline
                                      vladimirV Offline
                                      vladimir
                                      wrote on last edited by
                                      #90

                                      @electrik Thanks you! Now I will order everything I need on TaoBao in China. I just yesterday learned about the existence of the Sonoff module with 433 MHz radio support and wall switches for them.

                                      1 Reply Last reply
                                      0
                                      • vladimirV vladimir

                                        @electrik Now I just read the description of this firmware. To do this, I need to understand how to work with MQTT. I hoped to find a simpler solution. Ethernet gateway is much easier to connect.:man-shrugging:

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

                                        @vladimir what controller are you using? Most home automation controllers like domoticz and Home Assistant have a quick integration with Tasmota or EspEasy

                                        vladimirV 1 Reply Last reply
                                        0
                                        • gohanG gohan

                                          @vladimir what controller are you using? Most home automation controllers like domoticz and Home Assistant have a quick integration with Tasmota or EspEasy

                                          vladimirV Offline
                                          vladimirV Offline
                                          vladimir
                                          wrote on last edited by
                                          #92

                                          @gohan I use OpenHAB 2. As I understand it, it also integrates well with Tasmota.

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


                                          13

                                          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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular