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 relay

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 2 Posters 932 Views 2 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.
    • G Offline
      grssll @kayakbabe
      last edited by

      @kayakbabe
      3v coil relay to turn on led strip with motion and when timer expires turn off

      1 Reply Last reply Reply Quote 0
      • G Offline
        grssll @kayakbabe
        last edited by

        @kayakbabe 3v coil relay to turn led strip on with motio and off after timer expires

        kayakbabeK 1 Reply Last reply Reply Quote 0
        • kayakbabeK Offline
          kayakbabe @grssll
          last edited by kayakbabe

          @grssll Does your led strip have it’s own remote control? is it rf or blue tooth? or wi-fi? Could you emulate that in your pi on the command line? It is possible to have the module in the pi execute a command line script , like the monitor on and off command.

          Depending on how your led strip is controlled, Maybe you could use IFTTT. Lots of led light brands will work with it, if the lights are wi-fi based.

          Just suggesting some ideas.

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            grssll @kayakbabe
            last edited by

            @kayakbabe MMM-Pir has this configuration

            
            mode6_gpio	GPIO number for control the relay (mode 6 only)	Number	20.
            mode: 6 - use a relay switch command controled by GPIO with python
            

            but I cant make it to work

            kayakbabeK 1 Reply Last reply Reply Quote 0
            • kayakbabeK Offline
              kayakbabe @grssll
              last edited by

              @grssll is your relay already wired to your pi? And does it already work when you use the command line to change the state of the GPIO pin?

              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