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. How do I add the soil-moisture sensor to domoticz?

How do I add the soil-moisture sensor to domoticz?

Scheduled Pinned Locked Moved Domoticz
22 Posts 9 Posters 20.1k 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.
  • L Offline
    L Offline
    LastSamurai
    Hardware Contributor
    wrote on last edited by
    #12

    Great idea hek, I think that is the problem. But the sketch you posted uses a different sensor, doesn't it? There is something about:

     * Connection:
     *  D6, D7: alternative powering to avoid sensor degradation
     * A0, A1: alternative resistance mesuring
    

    And a link to different sensor. The cheap kind that I am using only has two connections for power and an analog and digital pin. I don't see how you could be alternating power here...
    But perhaps it helps if the sensor isn't constantly powered on but only for measurements.
    Does anyone else have a solution for this?

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #13

      Yes, @epierre should clarify what sensors used and how it should be connected in the sketch.

      If a new sensors type is used we should probably keep the old example and create a new one for this.

      epierreE 1 Reply Last reply
      0
      • TheoLT Offline
        TheoLT Offline
        TheoL
        Contest Winner
        wrote on last edited by
        #14

        Maybe a bit late. But the soil moisture sketch was the first one I brought into production by soldering it on a PCB. I added it to Domoticz as a motion sensor, not as a switch. And it's working great. If the motion sensor is telling that there's motion, it means the plants aren't thirsty. If there's no motion than the plants need some water. I even let Domoticz send a message to my mobile phone when the plants are thirsty ;-). I keep forgetting to give my plants water on a regular basis, so this sensor is really helpful.

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

          Hi @TheoL
          Motion sensor and Switch (and also the soil moisture sensor) work the same way in Domoticz. Its either 1 (ON/Motion/Wet) or 0 (Off/No motion/dry).

          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
          • hekH hek

            Yes, @epierre should clarify what sensors used and how it should be connected in the sketch.

            If a new sensors type is used we should probably keep the old example and create a new one for this.

            epierreE Offline
            epierreE Offline
            epierre
            Hero Member
            wrote on last edited by
            #16

            @hek said:

            Yes, @epierre should clarify what sensors used and how it should be connected in the sketch.

            If a new sensors type is used we should probably keep the old example and create a new one for this.

            Well it is here in the sketch: " Required to interface the sensor: 2 * 4.7kOhm + 2 * 1N414"

            but it was better in the post: http://forum.mysensors.org/topic/514/soil-humidity-and-temperature-sensor-watermark-davis-granular-matrix-sensor/2

            and yes it works with two connectors this way !

            @hek I'm not in the list ;-) https://github.com/mysensors/Arduino/graphs/contributors

            z-wave - Vera -> Domoticz
            rfx - Domoticz <- MyDomoAtHome <- Imperihome
            mysensors -> mysensors-gw -> Domoticz

            L 1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #17

              @epierre said:

              @hek I'm not in the list

              I can see you in the list :)

              epierreE 1 Reply Last reply
              0
              • hekH hek

                @epierre said:

                @hek I'm not in the list

                I can see you in the list :)

                epierreE Offline
                epierreE Offline
                epierre
                Hero Member
                wrote on last edited by
                #18

                @hek said:

                @epierre said:

                @hek I'm not in the list

                I can see you in the list :)

                visibly I searched myself at the bottom, but I had many bugs as it seems ;-)

                z-wave - Vera -> Domoticz
                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                mysensors -> mysensors-gw -> Domoticz

                1 Reply Last reply
                0
                • epierreE epierre

                  @hek said:

                  Yes, @epierre should clarify what sensors used and how it should be connected in the sketch.

                  If a new sensors type is used we should probably keep the old example and create a new one for this.

                  Well it is here in the sketch: " Required to interface the sensor: 2 * 4.7kOhm + 2 * 1N414"

                  but it was better in the post: http://forum.mysensors.org/topic/514/soil-humidity-and-temperature-sensor-watermark-davis-granular-matrix-sensor/2

                  and yes it works with two connectors this way !

                  @hek I'm not in the list ;-) https://github.com/mysensors/Arduino/graphs/contributors

                  L Offline
                  L Offline
                  LastSamurai
                  Hardware Contributor
                  wrote on last edited by LastSamurai
                  #19

                  Well it is here in the sketch: " Required to interface the sensor: 2 * 4.7kOhm + 2 * 1N414"
                  but it was better in the post: http://forum.mysensors.org/topic/514/soil-humidity-and-temperature-sensor-watermark-davis-granular-matrix-sensor/2
                  and yes it works with two connectors this way !

                  So this works with the sensor I linked above (= the one in the picture above)? I though changing the voltage way would destroy the sensor..
                  My goal is to have the sensor in soil for years though. Even if I turn it off while not measuring it might break I guess.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LastSamurai
                    Hardware Contributor
                    wrote on last edited by
                    #20

                    Anyone? Because I really want to use the sensor but I don't really get the posts her ;)

                    1 Reply Last reply
                    0
                    • hekH hek

                      @epierre did an update on the sketch which reverses polarity to help avoiding corrosion.

                      https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/SoilMoistSensor/SoilMoistSensor.ino

                      Per Arne BotnP Offline
                      Per Arne BotnP Offline
                      Per Arne Botn
                      wrote on last edited by Per Arne Botn
                      #21

                      And this sketch is supposed to be connected as this? :)

                      Edit: correct link is http://vanderleevineyard.com/1/post/2012/08/-the-vinduino-project-3-make-a-low-cost-soil-moisture-sensor-reader.html

                      1 Reply Last reply
                      0
                      • mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #22

                        Not quite. There are no diodes and no resistors in the solution I use.

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


                        16

                        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