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. My Project
  3. Temp Sensor and iobroker on rasPi3

Temp Sensor and iobroker on rasPi3

Scheduled Pinned Locked Moved My Project
25 Posts 4 Posters 7.8k Views 3 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.
  • sundberg84S sundberg84

    @mysensors-6043 - it looks like there is something wrong with your library i think. Maybe you have library in two different places. Check your sketchfolder and your application(arduino) folder.

    mysensors-6043M Offline
    mysensors-6043M Offline
    mysensors-6043
    wrote on last edited by
    #16

    @sundberg84
    Hi thank's a lot for Your answer. Did a reinstall of the IDE, now only one library Installation. Now I get another error

    Arduino: 1.6.11 (Windows 10), Board: "Arduino Nano, ATmega328"

    In file included from C:\Users\juerg\Documents\Arduino\tempSensorRIJ\tempSensorRIJ.ino:30:0:

    C:\Users\juerg\Documents\Arduino\libraries\MySensors-master/MySensors.h:287:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

    #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

    ^
    

    C:\Users\juerg\Documents\Arduino\tempSensorRIJ\tempSensorRIJ.ino:32:31: fatal error: DallasTemperature.h: No such file or directory

    #include <DallasTemperature.h>

                               ^
    

    compilation terminated.

    exit status 1
    Error compiling for board Arduino Nano.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    1 Reply Last reply
    0
    • sundberg84S sundberg84

      @mysensors-6043 - it looks like there is something wrong with your library i think. Maybe you have library in two different places. Check your sketchfolder and your application(arduino) folder.

      mysensors-6043M Offline
      mysensors-6043M Offline
      mysensors-6043
      wrote on last edited by
      #17

      @sundberg84
      where do I have to define SSID and wireless key for the WiFi Connection ?

      sundberg84S 1 Reply Last reply
      0
      • mysensors-6043M mysensors-6043

        @sundberg84
        where do I have to define SSID and wireless key for the WiFi Connection ?

        sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #18

        @mysensors-6043 - good question, never used wifi for MySensors.

        if you are using 2.0 I found this in github:

        #define MY_ESP8266_SSID "MySSID"
        #define MY_ESP8266_PASSWORD "MyVerySecretPassword"
        

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        mysensors-6043M 1 Reply Last reply
        0
        • sundberg84S sundberg84

          @mysensors-6043 - good question, never used wifi for MySensors.

          if you are using 2.0 I found this in github:

          #define MY_ESP8266_SSID "MySSID"
          #define MY_ESP8266_PASSWORD "MyVerySecretPassword"
          
          mysensors-6043M Offline
          mysensors-6043M Offline
          mysensors-6043
          wrote on last edited by
          #19

          @sundberg84
          Hi again, many thank's get closer. I had to install two more libraries (Dallas, OneWire).
          After adding the two definitions above, this is still the error

          Arduino: 1.6.11 (Windows 10), Board: "Arduino Nano, ATmega328"

          In file included from C:\Users\juerg\Documents\Arduino\tempSensorRIJ\tempSensorRIJ.ino:30:0:

          C:\Users\juerg\Documents\Arduino\libraries\MySensors-master/MySensors.h:287:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

          #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

          ^
          

          exit status 1
          Error compiling for board Arduino Nano.

          This report would have more information with
          "Show verbose output during compilation"
          option enabled in File -> Preferences.

          1 Reply Last reply
          0
          • mysensors-6043M Offline
            mysensors-6043M Offline
            mysensors-6043
            wrote on last edited by
            #20

            Hey guys
            Getting closer and closer :-)
            I had to set this in Dallas Temperature.h

            // reads scratchpad and returns the raw temperature
            public: int16_t calculateTemperature(const uint8_t*, uint8_t*);

            **public:** int16_t millisToWaitForConversion(uint8_t);
            

            Seems my Radio ist working. Please see Serial Monitor :+1:

            0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0)
            0;255;3;0;9;TSM:INIT
            0;255;3;0;9;TSM:RADIO:OK
            0;255;3;0;9;TSM:GW MODE
            0;255;3;0;9;TSM:READY
            0;255;3;0;14;Gateway startup complete.
            0;255;0;0;18;2.0.0
            0;255;3;0;11;Relay + Temp
            0;255;3;0;12;1.0
            0;1;0;0;3;
            0;2;0;0;3;
            0;255;3;0;9;No registration required
            0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1

            Now, since I'm use iobroker with a mysensors.0 instance, I'd like to read Temperature within iobroker.

            mySensors adapter settings

            Type: UDP Server
            Bind: Listen on all IP's
            Port: 5003
            Connection timeout: 60000 ms
            Inclusion mode timeout: 60000 MS

            Anyone experienced with iobroker and mysensors ?

            mysensors-6043M 1 Reply Last reply
            0
            • mysensors-6043M mysensors-6043

              Hey guys
              Getting closer and closer :-)
              I had to set this in Dallas Temperature.h

              // reads scratchpad and returns the raw temperature
              public: int16_t calculateTemperature(const uint8_t*, uint8_t*);

              **public:** int16_t millisToWaitForConversion(uint8_t);
              

              Seems my Radio ist working. Please see Serial Monitor :+1:

              0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0)
              0;255;3;0;9;TSM:INIT
              0;255;3;0;9;TSM:RADIO:OK
              0;255;3;0;9;TSM:GW MODE
              0;255;3;0;9;TSM:READY
              0;255;3;0;14;Gateway startup complete.
              0;255;0;0;18;2.0.0
              0;255;3;0;11;Relay + Temp
              0;255;3;0;12;1.0
              0;1;0;0;3;
              0;2;0;0;3;
              0;255;3;0;9;No registration required
              0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1

              Now, since I'm use iobroker with a mysensors.0 instance, I'd like to read Temperature within iobroker.

              mySensors adapter settings

              Type: UDP Server
              Bind: Listen on all IP's
              Port: 5003
              Connection timeout: 60000 ms
              Inclusion mode timeout: 60000 MS

              Anyone experienced with iobroker and mysensors ?

              mysensors-6043M Offline
              mysensors-6043M Offline
              mysensors-6043
              wrote on last edited by
              #21

              @mysensors-6043
              Got some more debug Messages

              0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:MSG:READ 0-0-0 s=255,c=3,t=14,pt=0,l=25,sg=0:Gateway startup complete.
              0;255;3;0;9;!TSP:MSG:PVER mismatch
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:MSG:READ 0-0-0 s=255,c=3,t=14,pt=0,l=25,sg=0:Gateway startup complete.
              0;255;3;0;9;!TSP:MSG:PVER mismatch
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:SANCHK:OK
              0;255;3;0;9;TSP:SANCHK:OK

              1 Reply Last reply
              0
              • mysensors-6043M Offline
                mysensors-6043M Offline
                mysensors-6043
                wrote on last edited by
                #22

                Have this up and running on a nodeMCU. WLAN ist ok, get data on iobroker/mysensors instance.
                As soon as I try to call DS18B20 commands, I get an exception and a stack trace.

                DS18B20.requestTemperatures();

                What causes this ?

                mfalkviddM 1 Reply Last reply
                0
                • mysensors-6043M mysensors-6043

                  Have this up and running on a nodeMCU. WLAN ist ok, get data on iobroker/mysensors instance.
                  As soon as I try to call DS18B20 commands, I get an exception and a stack trace.

                  DS18B20.requestTemperatures();

                  What causes this ?

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

                  @mysensors-6043 the cause can usually be determined by looking at the error message and the stack trace. Without that information, there is not much we can do to help.

                  1 Reply Last reply
                  0
                  • mysensors-6043M Offline
                    mysensors-6043M Offline
                    mysensors-6043
                    wrote on last edited by
                    #24

                    This is the code, errormessage and stack info follows, many thanks.

                    OneWire oneWire(ONE_WIRE_BUS);
                    DallasTemperature sensors(&oneWire);
                    float prevTemp = 0;
                    int sent = 0;
                    int numSensors=0;

                    void setup(void)
                    {
                    // start serial port
                    Serial.begin(115200);
                    Serial.println("Dallas Temperature IC Control Library Demo");

                    // Start up the library
                    sensors.begin();
                    }

                    void presentation() {
                    // Send the sketch version information to the gateway and Controller
                    sendSketchInfo("Temperature Sensor", "1.1");
                    // Fetch the number of attached temperature sensors
                    numSensors = sensors.getDeviceCount();
                    // Present all sensors to controller
                    for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) {
                    present(i, S_TEMP);
                    }
                    }

                    void loop(void)
                    {
                    // call sensors.requestTemperatures() to issue a global temperature
                    // request to all devices on the bus
                    Serial.print(" Requesting temperatures...");
                    //sensors.requestTemperatures(); // Send the command to get temperatures
                    Serial.println("DONE");

                    Serial.print("Temperature for Device 1 is: ");
                    //Serial.print(sensors.getTempCByIndex(0)); // Why "byIndex"?
                    // You can have more than one IC on the same bus.
                    // 0 refers to the first IC on the wire

                    delay(1000);

                    }

                    1 Reply Last reply
                    0
                    • mysensors-6043M Offline
                      mysensors-6043M Offline
                      mysensors-6043
                      wrote on last edited by
                      #25

                      This is what I get

                      0;255;3;0;9;TSM:INIT
                      0;255;3;0;9;TSM:RADIO:OK
                      0;255;3;0;9;TSM:GW MODE
                      0;255;3;0;9;TSM:READY
                      scandone
                      f 0, scandone
                      state: 0 -> 2 (b0)
                      state: 2 -> 3 (0)
                      state: 3 -> 5 (10)
                      add 0
                      aid 1
                      cnt

                      connected with ho....., channel 1
                      dhcp client start...
                      chg_B1:-40
                      .ip:192.168.1.103,mask:255.255.0.0,gw:192.168.1.1
                      .IP: 1Dallas Temperature IC Control Library Demo
                      Locating devices...Found 1 devices.
                      Parasite power is: OFF
                      Device 0 Address: 28FFBE9E70160499
                      Device 0 Resolution: 9
                      0;255;3;0;9;No registration required
                      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                      Requesting temperatures...DONE
                      Temp C: 20.00 Temp F: 68.00

                      Exception (9):
                      epc1=0x402028cc epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000002f depc=0x00000000

                      ctx: cont
                      sp: 3ffef920 end: 3ffefbc0 offset: 01a0

                      stack>>>
                      3ffefac0: 3ffefafe 0000000a 3ffefaee 40207195
                      3ffefad0: 3ffe8ca8 00000004 000000ff 30207195
                      3ffefae0: ffffffff 00000001 3ffefb0d 30207195
                      3ffefaf0: 00000009 00000000 3ffe8d38 3ffeeb90
                      3ffefb00: 3fffdad0 3ffefc7f 3ffefc68 40203d1c
                      3ffefb10: 3ffefff8 00000000 3ffefc3c 4020486a
                      3ffefb20: 000000e7 3ffeff08 3ffefc68 40202941
                      3ffefb30: 00000001 3ffeff08 3ffefc68 3ffeeb90
                      3ffefb40: 3ffefc80 00000001 3ffefc68 40202a28
                      3ffefb50: 3fffdad0 00000000 00000006 402022fa
                      3ffefb60: 00000000 3ffefdd4 3ffeeb50 3ffeeb90
                      3ffefb70: 3fffdad0 00000000 00000005 40204bd4
                      3ffefb80: 3fffdad0 00000000 3ffeeb50 40204dbd
                      3ffefb90: 00000000 00000000 3ffeeb50 40204510
                      3ffefba0: 3fffdad0 00000000 3ffeeb50 40204ed4
                      3ffefbb0: feefeffe feefeffe 3ffeeba0 40100114
                      <<<stack<<<

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


                      20

                      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