• 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.

MMM-PIR-Sensor-Lite does not switch HDMI off

Scheduled Pinned Locked Moved Unsolved Troubleshooting
43 Posts 7 Posters 12.3k 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.
  • S Offline
    sdetweil @dkhorse74
    last edited by Nov 16, 2022, 4:54 PM

    @dkhorse74 another user noticed this only worked for the 1st HDMI port on the pi4.

    had to change the code in the node_helper.js for the second port

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 2 Replies Last reply Nov 16, 2022, 5:23 PM Reply Quote 0
    • D Offline
      dkhorse74 @sdetweil
      last edited by Nov 16, 2022, 5:23 PM

      @sdetweil
      Thank you I will try… I ran:

      xrandr -q

      which show HDMI-2 is what is currently plugged in… Will report back

      1 Reply Last reply Reply Quote 1
      • D Offline
        dkhorse74 @sdetweil
        last edited by Nov 16, 2022, 5:36 PM

        @sdetweil
        that did it! Screen goes to sleep… now need to figure out how to get the doppler sensor to “wake-up” the monitor

        S 1 Reply Last reply Nov 16, 2022, 6:52 PM Reply Quote 1
        • S Offline
          sdetweil @dkhorse74
          last edited by Nov 16, 2022, 6:52 PM

          @dkhorse74 the module turns it back on… another place for the hdmi port…

          the sensor just signals movement, usually a high signal…

          the module then signals wake up and starts a time…

          no more high signals, then sleep…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 2 Replies Last reply Nov 16, 2022, 8:26 PM Reply Quote 0
          • D Offline
            dkhorse74 @sdetweil
            last edited by Nov 16, 2022, 8:26 PM

            @sdetweil
            yep, understood… Still not able to wake up the screen… I tested the sensor with a meter and getting correct input voltage… is there anything I could be missing?

            1 Reply Last reply Reply Quote 0
            • D Offline
              dkhorse74 @sdetweil
              last edited by Nov 16, 2022, 9:16 PM

              @sdetweil
              Found another post where you shared a link on how to run a PY script to test the sensor:

              https://projects.raspberrypi.org/en/projects/parent-detector/3

              Going to try this later tonight.

              D 1 Reply Last reply Nov 17, 2022, 3:17 AM Reply Quote 0
              • D Offline
                dkhorse74 @dkhorse74
                last edited by Nov 17, 2022, 3:17 AM

                Got everything to work perfectly…

                For anyone else who maybe considering using the doppler sensor with a potentiometer, you can follow the “how-to” thread in my initial post BUT use the MMM-PIR-Sensor-Lite module only as it keeps things simple. The other PIR modules may not work with Debian 11 (Bullseye)

                As for the resolution, the mistake was on my end:

                • I had “GND” and “Vout” swapped on the board pins

                • I had to join my raspberry login id to group “gpio”

                The following page is very useful to test the functionality of the sensor before you implement the change to mirror config file (thanks to @sdetweil for posting the link in a different thread):

                https://projects.raspberrypi.org/en/projects/parent-detector/3

                Again thanks to all for the help…

                G 1 Reply Last reply Nov 17, 2022, 9:29 AM Reply Quote 1
                • G Offline
                  grena Module Developer @dkhorse74
                  last edited by Nov 17, 2022, 9:29 AM

                  @dkhorse74

                  Got everything to work perfectly…

                  :thumbs_up:

                  The following page is very useful to test the functionality of the sensor before you implement the change to mirror config file (thanks to @sdetweil for posting the link in a different thread): https://projects.raspberrypi.org/en/projects/parent-detector/3

                  Yes, You can also run the python script of the module: python3 -u ~/MagicMirror/modules/MMM-PIR-Sensor-Lite/pir.py SENSOR_PIN

                  @sdetweil

                  another user noticed this only worked for the 1st HDMI port on the pi4.

                  Yes, I add this point of vigilance at the beginning of the readme :white_heavy_check_mark:

                  S D 2 Replies Last reply Nov 17, 2022, 12:21 PM Reply Quote 1
                  • S Offline
                    sdetweil @grena
                    last edited by Nov 17, 2022, 12:21 PM

                    @grena a more better thing would be to make a parameter for config so the user can change it without editing your code.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dkhorse74 @grena
                      last edited by dkhorse74 Nov 17, 2022, 2:33 PM Nov 17, 2022, 2:33 PM

                      @grena said in MMM-PIR-Sensor-Lite does not switch HDMI off:

                      :thumbs_up: Yes, You can also run the python script of the module: python3 -u ~/MagicMirror/modules/MMM-PIR-Sensor-Lite/pir.py SENSOR_PIN

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        31/43
                        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