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. General Discussion
  3. Newbie Question

Newbie Question

Scheduled Pinned Locked Moved General Discussion
11 Posts 2 Posters 2.6k Views 2 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.
  • M martim

    HI,

    I am brand-new to this forum and sorry if I ask stupid questions. I have a Wemos D1 mini without radio. I would like show the sensor data (DS 18B20) on a website served by the Wemos. Or connect it with Homey (mysensors app).

    Would that be possible? When I use the code and I would like to comment out the radio part, it won't compile. Is this not possible or do I need to do something else?

    Does somebody has maybe an example?

    Thanks,

    Marcel

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

    Hi @martim, big welcome to the MySensors community!

    Yes, it can be done. You will configure the wemos d1 as a gateway with a local sensor. The gateway can then be added to any controller.

    Start with building the plain gateway, by following the instructions at https://www.mysensors.org/build/esp8266_gateway

    Verify that it works and add it to your controller. Doing this first small step will save you a lot of time. Trying to do both gateway+sensor in one step is harder.

    When the gateway is working, add the temperature example to the gateway sketch and you should be good to go.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      martim
      wrote on last edited by
      #3

      Hi @mfalkvidd,

      Thank you. I have installed the software, can connect to internet. But in the output of serial window I see:

      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;!TSM:RADIO:FAIL
      0;255;3;0;9;!TSM:FAILURE
      0;255;3;0;9;TSM:PDT

      I can also not access http://<ip>:5003 (not sure if this is possible).

      So, without additional code I can try to add it to homey (my controller)?

      mfalkviddM 1 Reply Last reply
      0
      • M martim

        Hi @mfalkvidd,

        Thank you. I have installed the software, can connect to internet. But in the output of serial window I see:

        0;255;3;0;9;TSM:INIT
        0;255;3;0;9;!TSM:RADIO:FAIL
        0;255;3;0;9;!TSM:FAILURE
        0;255;3;0;9;TSM:PDT

        I can also not access http://<ip>:5003 (not sure if this is possible).

        So, without additional code I can try to add it to homey (my controller)?

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

        @martim sorry, I should have mentioned that you need to remove/comment out this line:

        #define MY_RADIO_NRF24
        

        Do that and upload the sketch again.

        With the nrf24 code activated, but no radio connected, the gateway won't start properly.

        Accessing it through http://<ip>:5003 won't work though, because it is not a web server. I think you could connect to it using telnet though.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          martim
          wrote on last edited by martim
          #5

          Hi,

          That seems to work :). Would it be possible to simulate a sensor? (To start easy :)) Ooh, and could you also tell me where I can find the documentation of the MySensors library (which function I can use)?

          mfalkviddM 1 Reply Last reply
          0
          • M martim

            Hi,

            That seems to work :). Would it be possible to simulate a sensor? (To start easy :)) Ooh, and could you also tell me where I can find the documentation of the MySensors library (which function I can use)?

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

            @martim the documentation is available at the "Download & API" link at the top right of this page :)
            The build examples (including the temperature I linked to earlier) are also good, I like to learn by looking at examples.

            Simulating a sensor is a good idea. I don't think we have a "dummy" example though. Maybe we should add one.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              martim
              wrote on last edited by
              #7

              Hi,

              Ok. Thanks for all your help. I need to solder the pins first before I can attach my sensor. A dummy would be indeed helpful. But I will attach the sensor tomorrow after I have solder the header pins.

              mfalkviddM 1 Reply Last reply
              1
              • M martim

                Hi,

                Ok. Thanks for all your help. I need to solder the pins first before I can attach my sensor. A dummy would be indeed helpful. But I will attach the sensor tomorrow after I have solder the header pins.

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

                @martim your question got my brain churning and today a similar question was posted so here is a dummy sensor: https://forum.mysensors.org/topic/5119/how-to-create-a-fake-local-sensor-on-ethernet-gateway/2

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  martim
                  wrote on last edited by
                  #9

                  Thanks! I will try this!

                  By the way the documentation in the zip file is more or less empty?

                  mfalkviddM 1 Reply Last reply
                  0
                  • M martim

                    Thanks! I will try this!

                    By the way the documentation in the zip file is more or less empty?

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

                    @martim could you clarify which zip file?

                    M 1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      @martim could you clarify which zip file?

                      M Offline
                      M Offline
                      martim
                      wrote on last edited by
                      #11

                      @mfalkvidd, when you download the library 2.0 and you extract this. There is a folder documentation which is almost empty. But in the meantime I found also a link api on the download location with more info.

                      The sketch did work! Great! Based on this example I can going forward.

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


                      23

                      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