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. 💬 Temperature Sensor

💬 Temperature Sensor

Scheduled Pinned Locked Moved Announcements
171 Posts 40 Posters 83.2k Views 36 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.
  • mfalkviddM mfalkvidd

    @bentrik the library is part of the MySensorsArduinoExamples, which can be downloaded at https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip

    bentrikB Offline
    bentrikB Offline
    bentrik
    wrote on last edited by bentrik
    #26

    @mfalkvidd Thanks for the feedback, It got me a bit further.
    I have a fresh Windows Arduino 1.6.12 install, and I have download the MySensors Library 2.0 through the Library manager, and I've found MySensors.h and MyConfig.h under \Documents\Arduino\libraries\MySensors

    I'm able to compile and upload the RelayActuator but quite a few of the library files seem to be missing in 2.0. DallasTemperature seem to be one of them.-But I struggled with DallasTemperature and some others.

    I copied all the whole MySensors-1.5.4.zip library files to to C:\Program Files (x86)\Arduino\libraries, and I managed to compile, but I got an error message saying Invalid version found: 1.04
    Then I tried to only copy the DallasTemperature and OneWire folder, and I had no errors.

    -So I assume all library files the entire MySensors Examples catalouge are not ready in Libraries 2.0.

    Anyways: The solution to get this sensor to work with Arduino 1.6.12, following the Download and API guide, adding MySensors 2.0 through the Library Manager, is to manually add:
    \Arduino\libraries\DallasTemperature
    \Arduino\libraries\OneWire\

    -from https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip
    -And not adding the whole structure.

    Now I just have to find out how to make it speak to my serial gateway :satisfied:

    1 Reply Last reply
    0
    • wendanW Offline
      wendanW Offline
      wendan
      wrote on last edited by
      #27

      I get the feeling it is possible to use more then one sensor parallel on port 3. I wonder if each sensor is being monitored? Am I right and do I need to alter or change something?

      1 Reply Last reply
      0
      • wendanW Offline
        wendanW Offline
        wendan
        wrote on last edited by
        #28

        my feeling was right.... i just connected 5 temp censors it is working great

        1 Reply Last reply
        2
        • J Offline
          J Offline
          Joseph Absher
          wrote on last edited by Joseph Absher
          #29

          I am getting the error:

          DallasTemperatureSensor.ino: In function 'void loop()':
          DallasTemperatureSensor:93: error: 'getConfig' was not declared in this scope
               float temperature = static_cast<float>(static_cast<int>((getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
          

          Does anyone have any suggestions?

          mfalkviddM 1 Reply Last reply
          0
          • J Joseph Absher

            I am getting the error:

            DallasTemperatureSensor.ino: In function 'void loop()':
            DallasTemperatureSensor:93: error: 'getConfig' was not declared in this scope
                 float temperature = static_cast<float>(static_cast<int>((getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
            

            Does anyone have any suggestions?

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

            @Joseph-Absher https://forum.mysensors.org/topic/5841/getconfig-was-not-declared-in-this-scope-v2-1-1-fixed

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Joseph Absher
              wrote on last edited by
              #31

              @mfalkvidd That worked. Thanks.

              1 Reply Last reply
              1
              • Vincent LgrdV Offline
                Vincent LgrdV Offline
                Vincent Lgrd
                wrote on last edited by
                #32

                Hello,
                I'm a beginner in home automation and I'm trying MySensor for the first time. My acctual configaration is a Domoticz on a Raspberry Pi 2B and a RFLink GW with a NRF24L01 module to try to measure with a MySensor probe.
                I've building a temperature sensor with a DS18B20 sensor on a Official Arduino nano board and I can not run the sensor correctly.
                The arduino serial monitor show these:

                0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
                3 TSM:INIT
                4 TSF:WUR:MS=0
                11 TSM:INIT:TSP OK
                12 TSM:FPAR
                15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                2022 !TSM:FPAR:NO REPLY
                2024 TSM:FPAR
                2026 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                4034 !TSM:FPAR:NO REPLY
                4036 TSM:FPAR
                4038 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                6046 !TSM:FPAR:NO REPLY
                6048 TSM:FPAR
                6050 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                8058 !TSM:FPAR:FAIL
                8059 TSM:FAIL:CNT=1
                8061 TSM:FAIL:PDT

                Someone could help me?

                1 Reply Last reply
                0
                • gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #33

                  Did you set node ID?

                  1 Reply Last reply
                  0
                  • Vincent LgrdV Offline
                    Vincent LgrdV Offline
                    Vincent Lgrd
                    wrote on last edited by
                    #34

                    Where should I put it? In arduino sensor code?

                    1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #35

                      Yes, it's like #define MY_NODE_ID 2 and put it at beginning of the code

                      1 Reply Last reply
                      0
                      • Vincent LgrdV Offline
                        Vincent LgrdV Offline
                        Vincent Lgrd
                        wrote on last edited by
                        #36

                        Ok , with Node ID, I have this:

                        0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
                        3 MCO:BGN:BFR
                        63 TSM:INIT
                        64 TSF:WUR:MS=0
                        71 TSM:INIT:TSP OK
                        73 TSM:INIT:STATID=2
                        75 TSF:SID:OK,ID=2
                        76 TSM:FPAR
                        113 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                        2120 !TSM:FPAR:NO REPLY
                        2122 TSM:FPAR
                        2158 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                        4166 !TSM:FPAR:NO REPLY
                        4168 TSM:FPAR
                        4204 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                        6212 !TSM:FPAR:NO REPLY
                        6214 TSM:FPAR
                        6250 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                        8258 !TSM:FPAR:FAIL
                        8259 TSM:FAIL:CNT=1

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #37

                          ok, but we are going off topic since now your problem seems to be the radios can't talk to each other, so if you take a look in troubleshooting section you will see others having this error that usually if bad wiring, missing capacitor on vcc of the nrf24, range/interference problem. How far are the 2 radio modules? Try putting them 2-3 meters apart.

                          1 Reply Last reply
                          0
                          • Vincent LgrdV Offline
                            Vincent LgrdV Offline
                            Vincent Lgrd
                            wrote on last edited by
                            #38

                            Thanks, my radio modules are very close, they are on the same table for test. On of them may be damaged, I must receive others. I'm going in the troubleshooting section to avoid polluting this article.
                            Thanks for your help

                            1 Reply Last reply
                            0
                            • gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #39

                              Put them at least 2 meters apart, just to play safe.

                              1 Reply Last reply
                              0
                              • Vincent LgrdV Offline
                                Vincent LgrdV Offline
                                Vincent Lgrd
                                wrote on last edited by
                                #40

                                It's the same, I've even reversed the radio modules

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dantefff
                                  wrote on last edited by
                                  #41

                                  @gohan , I'm in the same situation as @Vincent-Lgrd. I'm powering my arduino UNO from usb (to test). Is that a possible problem?

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #42

                                    I use USB pretty much all the time and never had any issue. I had many problems in the beginning with radio modules that had the black blob instead of the ic and once I got the new ones everything started to work. I'm still working on increasing the range, probably because they are clones and not good quality.

                                    D 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      I use USB pretty much all the time and never had any issue. I had many problems in the beginning with radio modules that had the black blob instead of the ic and once I got the new ones everything started to work. I'm still working on increasing the range, probably because they are clones and not good quality.

                                      D Offline
                                      D Offline
                                      dantefff
                                      wrote on last edited by
                                      #43

                                      @gohan I changed my getaway to an old good rpi model b, and the temperature node started to work, so I think that the problem was on de getaway wiring or in the getaway code itsef. Thanks

                                      1 Reply Last reply
                                      0
                                      • G Offline
                                        G Offline
                                        gewoonandre
                                        wrote on last edited by
                                        #44

                                        Is it also possible to upload the example code to a Arduino Nano, and connect it via USB to a Windows PC with Domoticz?

                                        Or will it only work with the radio modules (and extra gateway?)

                                        1 Reply Last reply
                                        0
                                        • gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #45

                                          I think you can use the serial gateway sketch and the sensor code in setup and loop

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          19

                                          Online

                                          12.0k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          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