• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Module error after updating - MMM-Pir: Pir Error detected: EINVAL: invalid argument, write

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 4 Posters 1.0k Views 4 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.
  • J Offline
    Jazz @bugsounet
    last edited by Jul 2, 2024, 3:53 PM

    @bugsounet Changing pir_ mode from 0 to 1 has fixed the problem :)

    Thanks for your help.

    Regards,

    Jazz

    1 Reply Last reply Reply Quote 0
    • J Jazz has marked this topic as solved on Jul 2, 2024, 3:53 PM
    • B Offline
      bugsounet Banned @bugsounet
      last edited by Jul 2, 2024, 4:02 PM

      ReadMe Updated

      1 Reply Last reply Reply Quote 0
      • L Offline
        Laca44
        last edited by Jul 9, 2024, 4:07 PM

        Hi everyone,

        I just can’t get it to work guys. Please help.

        GPIO setup:
        VIN - Pin2
        OUT - Pin6
        GND - Pin11

        Configuration:
        module: ‘MMM-Pir’,
        position: ‘top_left’,
        config: {
        debug: false,
        delay: 1 * 30 * 1000,
        mode: 1,
        displayCounter: true,
        displayBar: true,
        displayStyle: “SemiCircle”,
        displayLastPresence: true,
        lastPresenceTimeFormat: “LL H:mm”,
        xrandrForceRotation: “normal”,
        wrandrForceRotation: “normal”,
        touchMode: 2,
        pir_gpio: 17,
        pir_mode: 1,

        I have been playing around with all variations and have tested 3 sensors. Not sure what I’m missing.
        Thank you for your support!

        S 1 Reply Last reply Jul 9, 2024, 4:58 PM Reply Quote 0
        • S Offline
          sdetweil @Laca44
          last edited by sdetweil Jul 9, 2024, 5:03 PM Jul 9, 2024, 4:58 PM

          @Laca44 does it work outside
          MagicMirror?

          there are python scripts to test operation.
          google search
          python pir sensor test

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          L 1 Reply Last reply Jul 9, 2024, 9:19 PM Reply Quote 0
          • L Offline
            Laca44 @sdetweil
            last edited by Jul 9, 2024, 9:19 PM

            @sdetweil said in Module error after updating - MMM-Pir: Pir Error detected: EINVAL: invalid argument, write:

            python pir sensor test
            I’m a newbie and this helped a lot! Thank you!

            S 1 Reply Last reply Jul 9, 2024, 9:41 PM Reply Quote 0
            • S Offline
              sdetweil @Laca44
              last edited by Jul 9, 2024, 9:41 PM

              @Laca44 were you able to solve the problem?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              L 1 Reply Last reply Jul 10, 2024, 8:20 AM Reply Quote 0
              • L Offline
                Laca44 @sdetweil
                last edited by Jul 10, 2024, 8:20 AM

                @sdetweil Yes it helped in resolving the issue. I still need to understand what troubleshooting actually helped.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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