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. Multi sensor how to change basic script

Multi sensor how to change basic script

Scheduled Pinned Locked Moved Domoticz
3 Posts 3 Posters 2.0k Views 2 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.
  • B Offline
    B Offline
    BigDog
    wrote on last edited by
    #1

    Hi there :)

    can i make a multi arduno with 2 sensors? To monitor my power and water usage
    the example @ the website is for 1 if i put the other sensor on other pin and copy script and change the pin number and put the 2 script after ichother wil that work?

    Greetz
    BigDog

    1x Raspberry With Domoticz V2.3011 [Linux version 4.1.6+]
    PiRack With
    -1X PiFace Digital
    -1X RaZberry - OpenZWave
    1X RFXtrx433 USB Firmware: 183
    5X Arduino: mysensors V1.5(including)

    • First DoorBel Project -> WORKS! :)
      6x ESP8266: easy firmware(Testing)
    1 Reply Last reply
    0
    • R Offline
      R Offline
      rvendrame
      Hero Member
      wrote on last edited by
      #2

      It is possible, but you have to 'merge' the code from two scripts. Only one 'void setup()' , only one 'void loop()' , etc.

      Use multiple gw.present( x , y ) where x = sensor number and Y = sensor type.

      You are only limited by the memory available in arduino, and number if IO pins ;-)

      Home Assistant / Vera Plus UI7
      ESP8266 GW + mySensors 2.3.2
      Alexa / Google Home

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jkandasa
        Plugin Developer
        wrote on last edited by
        #3

        https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/HumiditySensor/HumiditySensor.ino

        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


        21

        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