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-Energy-Saver - an easy way to suspend/resume modules based on a PIR sensor.

    Scheduled Pinned Locked Moved System
    10 Posts 4 Posters 3.3k 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.
    • michael5rM Offline
      michael5r Module Developer @sdetweil
      last edited by

      @sdetweil It’s the same thing, though - when do you module.hide(), you trigger the suspend method for that particular module.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @michael5r
        last edited by

        @michael5r also note that modules can be hidden on purpose. So wakeup should not show all modules.

        My MMM-SleepWake saves a list of modules already hidden on sleep.

        This also works across sleep/wake voice commands by MMM-voice/lucy

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        michael5rM 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @michael5r
          last edited by

          @michael5r understand and agree

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • michael5rM Offline
            michael5r Module Developer @sdetweil
            last edited by

            @sdetweil said in MMM-Energy-Saver - an easy way to suspend/resume modules based on a PIR sensor.:

            @michael5r also note that modules can be hidden on purpose. So wakeup should not show all modules.

            My MMM-SleepWake saves a list of modules already hidden on sleep.

            This also works across sleep/wake voice commands by MMM-voice/lucy

            Sure - and in that case, the mmm-energy-saver module probably isn’t a good fit. But it works great when you only need to do what I describe above :)

            1 Reply Last reply Reply Quote 0
            • J Offline
              jordes
              last edited by

              how should the MMM-Pir-Sensor be set up for this module to work?
              This is my code:

                {
                              module: 'MMM-PIR-Sensor',
                              config: {
              sensorPin: "23",
                                      // See 'Configuration options' for more information.
                              }
                      }, 
              
              
              {
                  module: "mmm-energy-saver",
                  config: {
              triggerMonitor: "true",
              timeoutInSeconds: "3",
                      // ... whatever configuration options you want to use
                  }
              },
              
              
              michael5rM 1 Reply Last reply Reply Quote 0
              • michael5rM Offline
                michael5r Module Developer @jordes
                last edited by

                @jordes said in MMM-Energy-Saver - an easy way to suspend/resume modules based on a PIR sensor.:

                how should the MMM-Pir-Sensor be set up for this module to work?
                This is my code:

                  {
                                module: 'MMM-PIR-Sensor',
                                config: {
                sensorPin: "23",
                                        // See 'Configuration options' for more information.
                                }
                        }, 
                
                
                {
                    module: "mmm-energy-saver",
                    config: {
                triggerMonitor: "true",
                timeoutInSeconds: "3",
                        // ... whatever configuration options you want to use
                    }
                },
                
                

                This is how I have mine set up:

                {
                    module: 'MMM-PIR-Sensor',
                    config: {
                        sensorPin: 17,
                        powerSavingDelay: 0,
                        powerSavingNotification: false,
                        powerSaving: false // Should the monitor be turned off if no user is present? (via HDMI or relay)
                    }
                },
                
                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