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. Development
  3. ESP8266 WiFi gateway port for MySensors

ESP8266 WiFi gateway port for MySensors

Scheduled Pinned Locked Moved Development
328 Posts 56 Posters 309.8k Views 39 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.
  • J Offline
    J Offline
    jvandenbroek
    wrote on last edited by
    #57

    Just wanted to say thank you! It works great after hooking it up on my breadboard, now I can finally include MySensors in my sensor network 8-)

    YveauxY 1 Reply Last reply
    0
    • J jvandenbroek

      Just wanted to say thank you! It works great after hooking it up on my breadboard, now I can finally include MySensors in my sensor network 8-)

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #58

      @jvandenbroek Great to hear it's working fine! Have fun!

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gmccarthy
        wrote on last edited by
        #59

        Great work. Just starting out with mysensors and looking forward to implementing this. Waiting for my hardware to arrive :)

        YveauxY 1 Reply Last reply
        0
        • G gmccarthy

          Great work. Just starting out with mysensors and looking forward to implementing this. Waiting for my hardware to arrive :)

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #60

          @gmccarthy said:

          Great work.

          Your icon suggests differently :laughing:

          http://yveaux.blogspot.nl

          1 Reply Last reply
          1
          • G Offline
            G Offline
            gmccarthy
            wrote on last edited by gmccarthy
            #61

            I'm having problems compiling this - I must be missing something but can't figured out what.

            Error:

            Esp8266Gateway.ino:77:25: fatal error: ESP8266WiFi.h: No such file or directory

            I've downloaded the mysensor library and unzipped it.

            My sketchbook location is: C:\Users\xxxxx\Documents\Arduino

            Under C:\Users\xxxxx\Documents\Arduino\libraries\MySensors\examples\Esp8266Gateway
            Ads

            The esp8266gateway.ino file is present.

            Update: Pffft....try selecting the generic ESP8266 module :)

            1 Reply Last reply
            0
            • DrJeffD Offline
              DrJeffD Offline
              DrJeff
              wrote on last edited by
              #62

              Built Mine :smiley: works great the only problem I had was uploading the code from a Mac OSX Mavericks so I opened a Win7 VM I keep for these type of problems and all is good. Thanks! @Yveaux :clap:

              My Gateway has shrunk...SteUtUS.jpg

              YveauxY 1 Reply Last reply
              0
              • DrJeffD DrJeff

                Built Mine :smiley: works great the only problem I had was uploading the code from a Mac OSX Mavericks so I opened a Win7 VM I keep for these type of problems and all is good. Thanks! @Yveaux :clap:

                My Gateway has shrunk...SteUtUS.jpg

                YveauxY Offline
                YveauxY Offline
                Yveaux
                Mod
                wrote on last edited by Yveaux
                #63

                @DrJeff said:

                Built Mine

                Great to hear you got things running!
                @hek is also on Mac and he managed to download directly. Maybe you can discuss your issues with him so we can update the install instructions if something special is required for Mac.

                My Gateway has shrunk...!

                Sure did, and it's wireless now :laughing:

                http://yveaux.blogspot.nl

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #64

                  @DrJeff

                  I managed to upload on mac, but had to fiddle around before I got it working.

                  Added this text after my experience.
                  "This NodeMCU board normally can be flashed automatically and shouldn't need bootload/reset buttons to be pressed. If you see error, try changing baudrate from from 9600 to 57600. Still problems? Hold flash and press reset. Start upload in IDE while keeping flash-button pressed until upload starts."

                  1 Reply Last reply
                  0
                  • DrJeffD Offline
                    DrJeffD Offline
                    DrJeff
                    wrote on last edited by
                    #65

                    @hek Yes I tried those but it's probably the driver install it was acting a little finicky so it was quicker to flip over to the VM. :)

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      fleinze
                      wrote on last edited by
                      #66

                      @DrJeff
                      I remember that there was an error in the boardmanager-package for MacOS. You need to change the file-permissions to executable:

                      sudo chmod +x ~/Library/Arduino15/packages/esp8266/tools/esptool/0.4.4/esptool 
                      
                      1 Reply Last reply
                      1
                      • rvendrameR Offline
                        rvendrameR Offline
                        rvendrame
                        Hero Member
                        wrote on last edited by rvendrame
                        #67

                        I followed the steps above, and I'm even able to upload sketches, however I only get this in serial monitor:

                        load 0x4010f000, len 1264, room 16 
                        

                        Bad module maybe?

                        EDIT: After choosing the right board (v.1.0) and applying the fix above from @fleinze, it seems it is working now...

                        Home Assistant / Vera Plus UI7
                        ESP8266 GW + mySensors 2.3.2
                        Alexa / Google Home

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          krajcl
                          wrote on last edited by krajcl
                          #68

                          Hi,

                          I'm having problems running ESP8266 gateway. When I reset my nodes or trying send command from controller to node (dimmer, realy etc.) my gateway reset itself. I try using different ESP-s (I'm using ESP-12), power supplys and radio modules.

                          On serial monitor I get this error:

                          error.jpg

                          YveauxY 1 Reply Last reply
                          0
                          • K krajcl

                            Hi,

                            I'm having problems running ESP8266 gateway. When I reset my nodes or trying send command from controller to node (dimmer, realy etc.) my gateway reset itself. I try using different ESP-s (I'm using ESP-12), power supplys and radio modules.

                            On serial monitor I get this error:

                            error.jpg

                            YveauxY Offline
                            YveauxY Offline
                            Yveaux
                            Mod
                            wrote on last edited by Yveaux
                            #69

                            @krajcl What catches my eye is the client command echoed by the gateway: "Client 0: 44;255;3;0;6;"
                            The 0 at the end seems to be missing -- This could be a gateway issue (are you using the standard ESP gateway sketch, or did you make any modifications?) which causes e.g. the command parser to crash.

                            Could you give a more detailed description of your setup? Which controller are you using, what does the network look like (nr. of sensors, repeaters etc.).

                            http://yveaux.blogspot.nl

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              krajcl
                              wrote on last edited by
                              #70

                              @Yveaux I'm using standard ESP gateway sketch (I reinstalled Arduino IDE, download latest mysensors library). At the moment I'm using MYSController as controler (for testing), I only have one node active (standard humidity sketch - only changed node id).

                              YveauxY 1 Reply Last reply
                              0
                              • K krajcl

                                @Yveaux I'm using standard ESP gateway sketch (I reinstalled Arduino IDE, download latest mysensors library). At the moment I'm using MYSController as controler (for testing), I only have one node active (standard humidity sketch - only changed node id).

                                YveauxY Offline
                                YveauxY Offline
                                Yveaux
                                Mod
                                wrote on last edited by
                                #71

                                @krajcl The last command from the controller seems to be a response to the sensor to indicate metric or imperial units are used (internal command 6). The payload should be either 'M' or 'I'.
                                I'm not familiar with MYSController, but is there some setting influencing the unit system? Can you check if it has a valid value?
                                I can't replay the situation right now, so anything you can do yourself to track the problem would really help.

                                http://yveaux.blogspot.nl

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  krajcl
                                  wrote on last edited by
                                  #72

                                  @Yveaux This is result with Domoticz as controller and new node (relay), same result:

                                  error2.jpg

                                  YveauxY 1 Reply Last reply
                                  0
                                  • rvendrameR Offline
                                    rvendrameR Offline
                                    rvendrame
                                    Hero Member
                                    wrote on last edited by
                                    #73

                                    I'm definitely not a expert at all on the topic, but could it be that a ftdi-usb adapter doesn't provide enough power to ESP, and it eventually hangs when wi-fi transmissions drawn too much power? (according to the specs, ~150mA when transmitting) .

                                    Just trying to help with some (probably dumb) brainstorming. ;-)

                                    Home Assistant / Vera Plus UI7
                                    ESP8266 GW + mySensors 2.3.2
                                    Alexa / Google Home

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      gmccarthy
                                      wrote on last edited by gmccarthy
                                      #74

                                      Do you need to the NodeMCU to implement this?
                                      I have an arduino uno and ESP-01. How do I wire these up?

                                      After doing some more reading looks like the esp-01 does not have enough pins. Dont think I can use it :(

                                      1 Reply Last reply
                                      0
                                      • K krajcl

                                        @Yveaux This is result with Domoticz as controller and new node (relay), same result:

                                        error2.jpg

                                        YveauxY Offline
                                        YveauxY Offline
                                        Yveaux
                                        Mod
                                        wrote on last edited by
                                        #75

                                        @krajcl Does it only crash when sending this particular message?

                                        http://yveaux.blogspot.nl

                                        S 1 Reply Last reply
                                        0
                                        • K Offline
                                          K Offline
                                          krajcl
                                          wrote on last edited by
                                          #76

                                          @Yveaux I tried function (clear routing table) in MYSConroller. This is result:

                                          Client 0: 0;0;3;0;10;C
                                          Client 0: 6;0;3;0;10;C

                                          ctx: cont
                                          sp: 3ffeabe0 end: 3ffeaf20 offset: 01b0

                                          When I try this function for gateway, evrything works fine, but for other nodes - gateway resets

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


                                          12

                                          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