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.

    PIR Motion sensor

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 6 Posters 12.5k Views 7 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.
    • KimzerK Offline
      Kimzer
      last edited by

      @Kimzer said in LED Backlight for mirror - PIR to control them:

      Found this hue motion but i couldnt get it to run.
      Anyone that has some input?

      So i managed to do this. Its probably quite a dirty fix. And only setup to work with phillips hue bulbs/strips. But if u want to know shoot me a pm and ill show it. (Y)

      1 Reply Last reply Reply Quote 0
      • O Offline
        orayoflighto Project Sponsor @richardh151
        last edited by

        @richardh151

        Have you seen this?
        https://forum.magicmirror.builders/post/26789

        R 3 Replies Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer @richardh151
          last edited by

          @richardh151 Here’s a VERY simple one…

          https://github.com/cowboysdude/Pir-Sensor

          1 Reply Last reply Reply Quote 1
          • R Offline
            richardh151 @orayoflighto
            last edited by

            @orayoflighto what you show is exactly what I need, however struggling with MMM pir Sensor module as my MM shows a conf.js error. So can’t get beyond that. I also have the RGB WS2812B led strips which I discovered r more problematic to control. I feel as though I tried many things but still frustrated with non functioning lights.

            1 Reply Last reply Reply Quote 0
            • R Offline
              richardh151 @orayoflighto
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • R Offline
                richardh151 @orayoflighto
                last edited by

                @orayoflighto I’m struggling with MMM PIR Sensor and constantly get a black screen, this is my coming input, can you advise if I’m doing anything obviously wrong, thanks

                module: ‘MMM-PIR-Sensor’,
                config: {
                sensorGpio: 4, // This is the GPIO port number, not the header pin number
                relayGpio: false, // This is the GPIO port number, not the header pin number
                powerSaving: true,
                relayOnState: 1,
                relayOffState: 0,
                turnOffAfterSeconds: 30,
                debug: false
                }
                },

                1 Reply Last reply Reply Quote 0
                • O Offline
                  orayoflighto Project Sponsor
                  last edited by

                  Usually a black screen means that you have an error in your configuration file. Make a backup and remove as many lines as you can. Make sure you have the right GPIO pin. That can be confusing because it is different than the actual PIN number. Make sure you are also looking at a GPIO readout for a Pi 3 as the GPIOs are a little different depending on what version of the Pi you have.

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    richardh151 @orayoflighto
                    last edited by

                    @orayoflighto the error message is cannot find module onoff. Unsure now how to correct this, the GPIO pin seems correct

                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                    • strawberry 3.141S Offline
                      strawberry 3.141 Project Sponsor Module Developer @richardh151
                      last edited by

                      @richardh151 open a terminal go into your modules directory mmm-pir-sensor and run npm install

                      Please create a github issue if you need help, so I can keep track

                      R 1 Reply Last reply Reply Quote 2
                      • R Offline
                        richardh151 @strawberry 3.141
                        last edited by

                        @strawberry-3.141 the simplest advice is always the best, it now works perfectly, thank you

                        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