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. Troubleshooting
  3. Sensor dht+relay won't send data or present

Sensor dht+relay won't send data or present

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 3 Posters 2.3k 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.
  • MasMatM Offline
    MasMatM Offline
    MasMat
    wrote on last edited by
    #3

    I think there's a bigger clitch in my code somewhere that is causing that. I'm not sure if the millis-timer is properly used here or if that is somehow interfering with the other code.

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

      I'd use a wait (500) or (1000) at the end of the loop, to slow things down a bit

      MasMatM 1 Reply Last reply
      0
      • gohanG gohan

        I'd use a wait (500) or (1000) at the end of the loop, to slow things down a bit

        MasMatM Offline
        MasMatM Offline
        MasMat
        wrote on last edited by
        #5

        @gohan you mean "delay(500)"? Will that not affect the radio function if it is waiting for a command for the relay for example?

        HenryWhiteH 1 Reply Last reply
        0
        • MasMatM Offline
          MasMatM Offline
          MasMat
          wrote on last edited by
          #6

          The startup serial "seems" OK, but the relay function is not there. The MQTT log appears to send empty strings "" rather than 0 or 1 when I attempt to activate the relay from Domoticz.
          Just in case, the startup serial is as follows:

          0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
          3 MCO:BGN:BFR
          4 TSM:INIT
          5 TSF:WUR:MS=0
          12 TSM:INIT:TSP OK
          14 TSF:SID:OK,ID=1
          16 TSM:FPAR
          52 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          319 TSF:MSG:READ,0-0-1,s=255,c=3,t=8,pt=1,l=1,sg=0:0
          324 TSF:MSG:FPAR OK,ID=0,D=1
          2059 TSM:FPAR:OK
          2060 TSM:ID
          2061 TSM:ID:OK
          2063 TSM:UPL
          2068 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
          2075 TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1
          2080 TSF:MSG:PONG RECV,HP=1
          2082 TSM:UPL:OK
          2084 TSM:READY:ID=1,PAR=0,DIS=1
          2089 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
          2098 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
          2105 TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
          2113 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
          2240 TSF:MSG:READ,0-0-1,s=255,c=3,t=6,pt=0,l=1,sg=0:M
          2247 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndHumidity
          2257 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
          2266 TSF:MSG:SEND,1-1-0-0,s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          2273 TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
          2281 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=5,sg=0,ft=0,st=OK:Relay
          2289 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
          2297 TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
          2304 MCO:REG:REQ
          2307 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
          2345 TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1
          2351 MCO:PIM:NODE REG=1
          2353 MCO:BGN:STP
          2355 MCO:SLP:MS=2000,SMS=0,I1=255,M1=255,I2=255,M2=255
          2360 MCO:SLP:TPD
          2362 MCO:SLP:WUP=-1
          2364 MCO:BGN:INIT OK,TSP=1```
          1 Reply Last reply
          0
          • MasMatM MasMat

            @gohan you mean "delay(500)"? Will that not affect the radio function if it is waiting for a command for the relay for example?

            HenryWhiteH Offline
            HenryWhiteH Offline
            HenryWhite
            wrote on last edited by
            #7

            @MasMat said in Sensor dht+relay won't send data or present:

            @gohan you mean "delay(500)"? Will that not affect the radio function if it is waiting for a command for the relay for example?

            That's what wait() is for (mysensors specific) , it will not interfere with the radio commumication.

            1 Reply Last reply
            0
            • MasMatM Offline
              MasMatM Offline
              MasMat
              wrote on last edited by
              #8

              Thanks for the tip. Good to learn these things as I go.

              I'm to the point of rebuilding the sensor (or building a duplicate really) to see if this could be a hardware glitch.

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

                You could try ethernet gateway instead of mqtt if it works better and move to mqtt later on

                MasMatM 1 Reply Last reply
                0
                • gohanG gohan

                  You could try ethernet gateway instead of mqtt if it works better and move to mqtt later on

                  MasMatM Offline
                  MasMatM Offline
                  MasMat
                  wrote on last edited by
                  #10

                  @gohan I cant see the upside to going back since I couldnt get the Ethernet gw working but the mqtt appears to be working AND Domoticz supports it apparently.
                  I did a quick breadboard setup and it seems the problem might be hardware rather than sketch.

                  Question about the wait command: could I use wait (=soooo simple) rather than a millis timer to have a sensor/node be ready to activate a relay at any time but to only send DHT data every 60s or so?

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

                    sure you can use the wait()

                    1 Reply Last reply
                    0
                    • MasMatM Offline
                      MasMatM Offline
                      MasMat
                      wrote on last edited by
                      #12

                      To follow up. It was hardware: broken vcc pin on the dht11 corrupted the whole sensor code badly. Resolder and added wait-code, inverted the on-off 0-vs-1 and I have a good working sensor. The duplicate is also installed and working reliably.
                      A 6-relay board is also working nicely and Domoticz is great. My old system is nearly replaced and I couldnt be happier.

                      Respect and thanks all around!

                      1 Reply Last reply
                      2
                      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