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.

    Touch Switch - Wakes From and Puts To Sleep

    Scheduled Pinned Locked Moved Requests
    3 Posts 3 Posters 1.6k Views 3 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.
    • K Offline
      KumarTRD
      last edited by

      My mirror is coming along just the way I would like it just fine tweaking the software before I start the building of the frame. I’m looking to add a Momentary Capacitive Touch Sensor behind the top layer or glass/magimirror that when pressed the MagicMirror will go to sleep (Pi sleeps and screen turns off) and then awakes after another touch. I’m not sure if this a module request or something else. My future goal is to have this along side another Momentary Capacitive Touch Sensor that when pressed hides all modules and brings up my live fee from my security cameras full screen; and then when pressed again hides the live fee and shows the other modules.

      Any help wit this is greatly appreciate and thank you in advance.

      P N 2 Replies Last reply Reply Quote 0
      • P Offline
        potts-mike @KumarTRD
        last edited by

        @kumartrd

        What switch are you planning on using?

        1 Reply Last reply Reply Quote 0
        • N Offline
          ninjabreadman @KumarTRD
          last edited by

          @kumartrd Have a look at MMM-PIR-Sensor. You can customize it to suit your requirements. It normally triggers turning the monitor on, and sets a timer to turn the monitor off. Instead, you want to use button actions/notifications to do both, and not use a timer. Instead you can reuse the wake code for sleep. You’ll also need to add a logic test that a button press while asleep wakes, while a button press while awake sleeps. Have a look at this thread for a very thorough explanation.

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          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