MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Egnos
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 29
    • Posts 269
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: PIR sensor to turn on LED strip

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

      @Egnos ok got it.
      what I was saying is that the
      MMM-PIR-???
      modules, if you use them, THEY send the USER_PRESENCE notification
      the GPIO_Notifcations module is more generic and can send notifications for ANY gpio device

      Ok ok, I just wanted to be sure that, in my case, the MMM-GPIO-Notifications module sends the “USER_PRESENCE” notification.
      I knew that the module I am using is a collector of GPIO devices…

      Thanks @sdetweil

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor problem after restart Raspi

      @JoeFranz I can recommend these two modules for the PIR (I just installed them, they also work with the S.O. bullseye):

      MMM-GPIO-Notifications: https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications
      MMM-Screen-Powersave-Notification: https://github.com/Tom-Hirschberger/MMM-Screen-Powersave-Notification

      posted in Troubleshooting
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

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

      u don’t need the GPIO_Notifications module. as the PIR modules send the USER_PRESENCE notification:

      The module I use for sending notifications when the PIR detects motion is MMM-GPIO-Notifications
      I believe he is sending the “USER_PRESENCE” notification:

      notifications: [
                  {
                    notification: 'USER_PRESENCE',
                    payload: true
                  },
      

      Thanks for your patience @sdetweil ! ;-)

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

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

      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

      Thanks @sdetweil

      Let’s see if I understand:

      • By default the LEDs will be off, until the “MMM-GPIO-Notifications” module detects something.
      • If the PIR detects the movement the “MMM-GPIO-Notifications” module will send the notification USER_PRESENCE = true and the LEDs will turn on
      • After some time without movement the “MMM-GPIO-Notifications” module will send the notification USER_PRESENCE = false and the LEDs will turn off

      Correct?

      I’m not a developer, but I’m still trying to understand your change in the code:

      else if (notification === ' USER_PRESENCE'){
                  if(payload == false){
                      this.leds.allOFF();
                  } else {
                      // user present, restore the last active sequence
                      Promise.resolve(this.runSequence(this.lastSequence.sequence, thi,lastSequence.iterations,this.lastSequence.delay)
                      .catch((err) => {
                          this.log('user present Sequence error: ' + err.message);
                      }));
      

      why can’t I see this notification in the code?

      (notification === ' USER_PRESENCE'){
                  if(payload == true){
                      this.leds.allON();
                  }
      

      Thanks again!

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

      @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');
      
      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

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

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

      @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 … 🤞

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

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

      that could be added pretty easily

      The problem is that I don’t have the skills to program. I understand something … but not enough … unfortunately

      posted in General Discussion
      E
      Egnos
    • RE: PIR sensor to turn on LED strip

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

      @Egnos from the 3rd party modules list, maybe

      This module https://github.com/idoodler/MMM-RPI-LED it seems it cannot be controlled with notifications.

      posted in General Discussion
      E
      Egnos
    • PIR sensor to turn on LED strip

      Hello everybody,
      I am moving forward with my MM project and was wondering if it would be possible to activate an LED strip when the PIR sensor detects motion.

      In particular, I use the following modules for the PIR:
      MMM-GPIO-Notifications: https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications
      MMM-Screen-Powersave-Notification: https://github.com/Tom-Hirschberger/MMM-Screen-Powersave-Notification

      Is there a module capable of controlling an LED strip using notifications?
      Perhaps using the notifications of the module “MMM-GPIO-Notifications” …

      Thank you all.

      posted in General Discussion
      E
      Egnos
    • 1 / 1