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. Announcements
  3. 💬 Building a WiFi Gateway using ESP8266

💬 Building a WiFi Gateway using ESP8266

Scheduled Pinned Locked Moved Announcements
109 Posts 52 Posters 23.2k Views 51 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by hek
    #1

    This thread contains comments for the article "Building a WiFi Gateway using ESP8266" posted on MySensors.org.

    ramoncarranzaR 1 Reply Last reply
    0
    • Fat FlyF Offline
      Fat FlyF Offline
      Fat Fly
      wrote on last edited by
      #2

      Small question. How to connect this gw to Domoticz ? Over lan and in Domoticz ?

      B 1 Reply Last reply
      0
      • breimannB Offline
        breimannB Offline
        breimann
        wrote on last edited by
        #3

        Yes would this work with a Rasp Pi controller running Domoticz? Just connect over WIFI to the same network the Controller is connected to?

        1 Reply Last reply
        0
        • Fat FlyF Offline
          Fat FlyF Offline
          Fat Fly
          wrote on last edited by
          #4

          Yes. Network is same.

          1 Reply Last reply
          0
          • popP Offline
            popP Offline
            pop
            wrote on last edited by
            #5

            Can the esp8266Gateway be used as an MQTT gateway too? Is it a config issue or does more code need porting first?

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

              Yes,

              The configuration and example can be found here:
              https://www.mysensors.org/build/mqtt_gateway

              1 Reply Last reply
              0
              • popP Offline
                popP Offline
                pop
                wrote on last edited by
                #7

                Fantastic. Thanks.

                1 Reply Last reply
                1
                • Patrik SöderströmP Offline
                  Patrik SöderströmP Offline
                  Patrik Söderström
                  wrote on last edited by
                  #8

                  Uploaded this sktech to a NodeMcu yesterday, i can add it in domoticz. When i try to add a light sensor, it shows up as a light sensor node in domoticz under the Mysensors lan gateway. but it does not show any device. Anyone who have an idea?

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

                    Please use the development branch until 2.0.1 has been released.

                    It allows presentation on gateway attached devices.

                    1 Reply Last reply
                    0
                    • Patrik SöderströmP Offline
                      Patrik SöderströmP Offline
                      Patrik Söderström
                      wrote on last edited by
                      #10

                      Cool, I downloaded it and replaced the old master brach.
                      Still get the same effect.
                      I paste my sketch here, all except the wifi part, that works. Tell me if I should include it here as well. But I feel its something in this below part that is failing on me

                      #include <MySensors.h>
                      
                      //###################### LIGHT SENSOR #####################
                      #define CHILD_ID_LIGHT 0
                      #define LIGHT_SENSOR_ANALOG_PIN 0
                      
                      unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
                      
                      MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL);
                      int lastLightLevel;
                        //#########################################################
                      
                      void setup() { 
                      }
                      
                      void presentation() {
                      
                        //###################### LIGHT SENSOR #####################
                        // Send the sketch version information to the gateway and Controller
                      sendSketchInfo("Light Sensor", "1.0");
                      
                        // Register all sensors to gateway (they will be created as child devices)
                      present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
                      
                        //#########################################################
                      }
                      
                      
                      void loop() {
                      
                        //###################### LIGHT SENSOR #####################
                        int16_t lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; 
                        Serial.println(lightLevel);
                        if (lightLevel != lastLightLevel) {
                            send(msg.set(lightLevel));
                            lastLightLevel = lightLevel;
                        }
                        sleep(SLEEP_TIME);
                        //#########################################################
                        
                      }
                      
                      1 Reply Last reply
                      0
                      • bgunnarbB Offline
                        bgunnarbB Offline
                        bgunnarb
                        wrote on last edited by
                        #11

                        A couple of ESP-12E modules arrived in the mail last Friday and I uploaded the ESP8266 MQTT GW sketch. It worked immediately. Fantastic!
                        I am using a cloudserver MQTT broker on cloudmqtt.com and the OpenHab controller subscribes to that as well.

                        Just a question... I tried to enable the LED BLINKING feature but it seems there are no free pins on the ESP-12 module. I've tried the not connected pins but whatever pin I select (0,1,3,4,9,10) this seems to stop the GW from starting. Ideas anyone?

                        I have never been so busy since I retired!

                        mfalkviddM 1 Reply Last reply
                        0
                        • bgunnarbB bgunnarb

                          A couple of ESP-12E modules arrived in the mail last Friday and I uploaded the ESP8266 MQTT GW sketch. It worked immediately. Fantastic!
                          I am using a cloudserver MQTT broker on cloudmqtt.com and the OpenHab controller subscribes to that as well.

                          Just a question... I tried to enable the LED BLINKING feature but it seems there are no free pins on the ESP-12 module. I've tried the not connected pins but whatever pin I select (0,1,3,4,9,10) this seems to stop the GW from starting. Ideas anyone?

                          mfalkviddM Offline
                          mfalkviddM Offline
                          mfalkvidd
                          Mod
                          wrote on last edited by mfalkvidd
                          #12

                          @bgunnarb great that you got it working so quickly!

                          Not sure which numbering scheme you are using (there are unfortunately many ways to number the ESP pins) but many of the pins have special use and are therefore hard to utilize. Some of my notes on the subject:

                          GPIO0, gpio2 an gpio15 are tricky but can be used if special care is taken: http://www.instructables.com/id/ESP8266-Using-GPIO0-GPIO2-as-inputs/?ALLSTEPS
                          gpio16 also seems special, see http://bbs.espressif.com/viewtopic.php?t=632
                          GPIO6-GPIO11 are typically used to interface with the flash memory ICs on most esp8266 modules, so these pins should not generally be used.
                          http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations has lots of information on the pins.

                          Kolban's book on ESP has a nice clear and color-coded table describing which pins are "safe" to use without any hassle.

                          1 Reply Last reply
                          1
                          • siodS Offline
                            siodS Offline
                            siod
                            wrote on last edited by
                            #13
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • siodS Offline
                              siodS Offline
                              siod
                              wrote on last edited by
                              #14
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • FotoFieberF Offline
                                FotoFieberF Offline
                                FotoFieber
                                Hardware Contributor
                                wrote on last edited by
                                #15

                                Please add a wiring diagram for the RFM69.

                                I found this:
                                https://forum.mysensors.org/topic/3061/solved-esp8266-gateway-with-rfm69-wdt-issues/4

                                But I miss the CE in that post.

                                1 Reply Last reply
                                0
                                • korttomaK Offline
                                  korttomaK Offline
                                  korttoma
                                  Hero Member
                                  wrote on last edited by
                                  #16

                                  There is no CE pin on the RFM69

                                  https://www.mysensors.org/build/connect_radio

                                  • Tomas
                                  FotoFieberF 1 Reply Last reply
                                  0
                                  • Fat FlyF Offline
                                    Fat FlyF Offline
                                    Fat Fly
                                    wrote on last edited by
                                    #17

                                    Please look right connection diagram. Not nrf24l01+. and you see how to connect. If you do not see you van watch with glasses.

                                    1 Reply Last reply
                                    0
                                    • korttomaK korttoma

                                      There is no CE pin on the RFM69

                                      https://www.mysensors.org/build/connect_radio

                                      FotoFieberF Offline
                                      FotoFieberF Offline
                                      FotoFieber
                                      Hardware Contributor
                                      wrote on last edited by
                                      #18

                                      @korttoma
                                      :open_mouth:
                                      Shame on me... I am using a NRF2RFM69 adapter with a CE pin and didn't realize it has no function.

                                      1 Reply Last reply
                                      0
                                      • E Offline
                                        E Offline
                                        emc2
                                        Hardware Contributor
                                        wrote on last edited by
                                        #19

                                        I'm currently adding some wifi gateways at work, I was wondering:

                                        • is ATSHA204 signing support something planned, or will it stay on soft-sign only mode?
                                        • is IRQ support something planned too?

                                        It's mostly to see if I need to plan to add these features on the PCB for later, or not.

                                        Thanks!

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

                                          @FotoFieber Did you come right with the RFM69? I also struggling to get it working and need to confirm the wiring diagram.

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


                                          10

                                          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