MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Trouble with PIR sensor

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 2 Posters 6.7k Views 1 Watching
    Loading More Posts
    • 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.
    • cruunnerrC Offline
      cruunnerr @jheller333
      last edited by cruunnerr

      @jheller333

      Do u have a link to your relay? Do u hear it clicking?

      1 Reply Last reply Reply Quote 0
      • J Offline
        jheller333
        last edited by

        I dont hear it clicking. https://www.creatroninc.com/product/5v-10a-dc-relay-module/?search_query=relay&results=39. Thats the relay i purchased

        1 Reply Last reply Reply Quote 0
        • J Offline
          jheller333
          last edited by

          When I run the python script relayPIR.py, the relay clicks and the green light turns on, but once I end that script, the light doesn’t come back on

          1 Reply Last reply Reply Quote 0
          • cruunnerrC Offline
            cruunnerr
            last edited by cruunnerr

            hmm… I will check this tomorrow and will give a result

            Installed a fresh Raspbian Stretch Desktop and just created the relayPIR.py which runs perfectly. can start and stop whenever i want the script and even autostart on reboot works great.

            Hmm… so we used several options and nothing seems to work… You should delete all things we made and start again.

            Maybe just try to create the relay script on point 5.2

            1 Reply Last reply Reply Quote 0
            • J Offline
              jheller333
              last edited by

              So I deleted everything and started over. Followed your instructions from point 5.2 and it’s still not working. Really not sure where to go from here

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy