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. Motion Sensing sketch which is also a repeater

Motion Sensing sketch which is also a repeater

Scheduled Pinned Locked Moved Troubleshooting
motionrepeatersketchsensor
5 Posts 3 Posters 3.3k 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.
  • D Offline
    D Offline
    Dean
    wrote on last edited by Dean
    #1

    Hey!

    I continue to have fun playing around with these sensors :-) I have built a wall plug which is powered by 240V and then reduced to 5v to power my motion sensor. I think I have a problem though... I have never had any issues with my Vera 3, but about an hour after powering up this sensor I had my first issue with Vera and I had to reboot it. I think it might be my sketch sending too much info, and I was wondering if someone could review it for me?

    https://codebender.cc/sketch:76040

    One thing I did forget is to add the "Repeater Node" on line 18, so now that it is added I haven't tested it yet, but something tells me that it is not the issue.

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

      Looks ok,

      What does the serial monitor say? Is it spewing out debug prints?

      D 1 Reply Last reply
      0
      • hekH hek

        Looks ok,

        What does the serial monitor say? Is it spewing out debug prints?

        D Offline
        D Offline
        Dean
        wrote on last edited by
        #3

        @hek said:

        What does the serial monitor say? Is it spewing out debug prints?

        It crashes. That was my first indication that someone was wrong... I always have my sensors connected to my computer when I put them through their initial inclusion with Vera, and when I did this the monitor brought up a couple lines and then froze. Even after resetting the board nothing would come up. It also only brought up one device on Vera rather than two... I did forget to write "Repeater Node" in line 18 originally, so could that be the whole reason to my issue maybe?

        Anyways, I'm off to work now but will test again when I get home tonight :-)

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

          sendSketchInfo takes 3 arguments.
          First two is name and version string. Last is a boolean which indicates if you want ack back.

          http://www.mysensors.org/build/sensor_api#the-full-api

          I have no idea what is going to happen if you set a string as third argument.
          The two first information strings is never interpreted anywhere. They are just shown as-is on the controller side.

          1 Reply Last reply
          0
          • jeylitesJ Offline
            jeylitesJ Offline
            jeylites
            wrote on last edited by
            #5

            Hey guys,

            I was justing wondering, is there a way to deactivate the motion sensor if not being used? Eg: My motion sensors are connected to Homeseer and they show up as sensors but I was wondering if I could have an ON / OFF control to deactivate or active the motion as needed.

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


            15

            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