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 21.3k 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.
  • H Offline
    H 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.

    E 1 Reply Last reply
    0
    • T Offline
      T 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
      • S Offline
        S 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
        • H 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.

          E Offline
          E 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
          • H Offline
            H 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 :)

            E 1 Reply Last reply
            0
            • H hek

              @epierre said:

              @hek I'm not in the list

              I can see you in the list :)

              E Offline
              E 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
              • E 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
                  • H 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

                      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


                      15

                      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