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. Controllers
  3. Domoticz
  4. Missing sensor nodes in domoticz

Missing sensor nodes in domoticz

Scheduled Pinned Locked Moved Domoticz
20 Posts 5 Posters 8.6k Views 4 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.
  • lorimoL Offline
    lorimoL Offline
    lorimo
    wrote on last edited by
    #11

    @sundberg84 the connection is a regular USB cable which works fine on other devices too.
    But I am one step ahead: I changed the sketch for only using the humidity sensor and it worked as expected. The values come in and I see them in the domoticz log, also the "last seen" in the dashboard updates.
    Then I did the same for the pressure sensor and it didn't work. For this the solution was really easy: a type mismatch. I defined "pressure" as "long" and "lastBaro" as "float". After changing both to "float" the single sensor gateway woks fine. I see the pressure sensor in the devices list and the values are collected.

    But when I connect both sensors, still nothing works.

    1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by
      #12

      Really strange... as i said it works great with my sketch and it looks similar.

      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

      1 Reply Last reply
      0
      • lorimoL Offline
        lorimoL Offline
        lorimo
        wrote on last edited by
        #13

        @sundberg84 still searching for a solution.
        I tried to rewrite the sketch, starting from the working single sensor gateway with the humidity sensor. In the domoticz log I can see the messages from the sensor come in and the value is updated. Then I added line by line the necessary code for the pressure sensor.
        The "present(ID, S_BARO);" did not have any results, but the humidity still updates. After adding the "send(msgBaro.set(pressure, 0));" the data delivery stopped (does it make any difference here to have a "0" instead of "1" for the ack? It's the only difference to your script I found.)
        It's the same the other way around: starting from the gateway only with the pressure sensor. As soon as I add the send command the function stops.

        This led me to the idea, that there must be something wrong with the present() or the library. I searched for another library for the BMP180 sensor and fond https://github.com/sparkfun/BMP180_Breakout. And it worked directly. The only problem is, that now the values are incorrect. I get 867hPa instead of 1018hPa.

        Thanks for your help!

        1 Reply Last reply
        0
        • lorimoL Offline
          lorimoL Offline
          lorimo
          wrote on last edited by
          #14

          @sundberg84 So I found the error while using the SFE_BMP180 library: there is a need for a short delay before the getPressure(). So now it works.

          But why not with the Adafruit_BMP085 library I do not understand.

          Thanks a lot.

          1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #15

            @lorimo Good you worked it out - sometimes it can be a combination of several libraries. I have been really struggling to combine DS18B20, DHT22, water and gas sensor though separately all sketches were working just fine.

            In your case, the simple solution would be having BME280 instead of both DHT22 and BMP180

            1 Reply Last reply
            0
            • lorimoL Offline
              lorimoL Offline
              lorimo
              wrote on last edited by
              #16

              @alexsh1 yes, that's what I found out after buying those two devices. But for some early tests and freshen up my rusty programming skills it is good. Maybe I change the hardware for the final installation.
              But it is still curious, that those two libraries won't work together. I tried to understand the code, but up to now did not find a clue, what could be the reason.

              1 Reply Last reply
              0
              • alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #17

                @lorimo it is a low level programming you have to look at. Also from my experience having one sensor is always better than having two. You may park your sensors and go for BME280. It is more expensive, but very small and handy.

                1 Reply Last reply
                0
                • lorimoL Offline
                  lorimoL Offline
                  lorimo
                  wrote on last edited by
                  #18

                  Do you love curiosity?
                  After nearly a week of running, my gateway stopped working out of the blue.
                  I found out, that I am where I began. The same effects as described in the original post, but with the SFE library.

                  So I tried it again with the original Adafruit_BMP library and --- it worked !

                  Maybe there is something with my hardware. I'll go and get me another Arduino Board from a different manufacturer and try it again.

                  alexsh1A 1 Reply Last reply
                  0
                  • lorimoL lorimo

                    Do you love curiosity?
                    After nearly a week of running, my gateway stopped working out of the blue.
                    I found out, that I am where I began. The same effects as described in the original post, but with the SFE library.

                    So I tried it again with the original Adafruit_BMP library and --- it worked !

                    Maybe there is something with my hardware. I'll go and get me another Arduino Board from a different manufacturer and try it again.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #19

                    @lorimo said:

                    Do you love curiosity?
                    After nearly a week of running, my gateway stopped working out of the blue.

                    Are you sure this is not a node and 100% the gateway stopped working?

                    lorimoL 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @lorimo said:

                      Do you love curiosity?
                      After nearly a week of running, my gateway stopped working out of the blue.

                      Are you sure this is not a node and 100% the gateway stopped working?

                      lorimoL Offline
                      lorimoL Offline
                      lorimo
                      wrote on last edited by
                      #20

                      @alexsh1 yes, I'm sure. Up to now it is only a serial gateway with direct connected sensors.

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


                      24

                      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