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

PIR sensor to turn on LED strip

Scheduled Pinned Locked Moved General Discussion
35 Posts 6 Posters 8.1k Views 6 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 Away
    sdetweil @Egnos
    last edited by Sep 6, 2022, 5:34 PM

    @Egnos well, there ARE people who could do it…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil @Egnos
      last edited by Sep 6, 2022, 6:15 PM

      @Egnos what actions would u like the LEDs to do on notification? and what would u think the notification ID string should be?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Sep 6, 2022, 9:39 PM Reply Quote 0
      • E Offline
        Egnos @sdetweil
        last edited by Egnos Sep 6, 2022, 9:40 PM Sep 6, 2022, 9:39 PM

        @sdetweil said in PIR sensor to turn on LED strip:

        what actions would u like the LEDs to do on notification? and what would u think the notification ID string should be?

        Initially it would be enough to turn on the LEDs at the same time as the monitor is turned on and turn them off when the monitor is turned off.

        For the notification I believe that the module that manages the LEDs should respond to a notification such as “LightOn-White” and “LightOff-White” generated by the module that manages the PIR sensor variations.
        I hope I haven’t said too many wrong things … 🤞

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

        S 1 Reply Last reply Sep 6, 2022, 10:39 PM Reply Quote 0
        • S Away
          sdetweil @Egnos
          last edited by Sep 6, 2022, 10:39 PM

          @Egnos that led module can only on/off/ or blink

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Sep 6, 2022, 11:12 PM Reply Quote 0
          • E Offline
            Egnos @sdetweil
            last edited by Egnos Sep 6, 2022, 11:14 PM Sep 6, 2022, 11:12 PM

            @sdetweil said in PIR sensor to turn on LED strip:

            that led module can only on/off/ or blink

            At the moment I could be satisfied … but it does not seem that the module proposed by you can receive notifications.

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            S 1 Reply Last reply Sep 7, 2022, 1:11 AM Reply Quote 0
            • S Away
              sdetweil @Egnos
              last edited by Sep 7, 2022, 1:11 AM

              @Egnos notifications are easy… but this module rpi-leds, only toggles the leds ON the pi board… not led strip…

              if u can find one that works the ed strip with a python command, then we can make that work

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • E Offline
                Egnos
                last edited by Sep 7, 2022, 8:59 AM

                @sdetweil said in PIR sensor to turn on LED strip:

                but this module rpi-leds, only toggles the leds ON the pi board… not led strip…

                Maybe this module could fit https://github.com/jc21/MMM-PiLights, using SPI and a LPD8806 or WS2801 LED strip.

                @sdetweil said in PIR sensor to turn on LED strip:

                if u can find one that works the ed strip with a python command, then we can make that work

                It appears to respond to notifications:

                this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
                

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                S 2 Replies Last reply Sep 7, 2022, 12:11 PM Reply Quote 0
                • S Away
                  sdetweil @Egnos
                  last edited by Sep 7, 2022, 12:11 PM

                  @Egnos it has a way for all off. but not all on.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @Egnos
                    last edited by sdetweil Sep 7, 2022, 7:06 PM Sep 7, 2022, 3:39 PM

                    @Egnos use my updated fork…

                    https://github.com/sdetweil/MMM-PiLights

                    it responds to the PIR modules USER_PRESENCE notification (true = turn on, false = turn off)

                    if lights are off and on is sent, it will restore the previous sequence set with the normal
                    SEQUENCE notification

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Sep 8, 2022, 8:33 AM Reply Quote 0
                    • W Offline
                      wishmaster270 Module Developer
                      last edited by Sep 7, 2022, 6:59 PM

                      Hi,

                      I would suggest the solution of @sdetweil as well.

                      An other, but much more complicate version would be to use my PythonLedControl and control it with the MMM-MQTTbridge module.

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