Read the statement by Michael Teeuw here.
MMM-Pir relay
-
I’m using MMM-Pir to turn monitor on/off and would like to use motion to turn the relay on/off as well. Does anyone know how to to use this module to to get GPIO high and low with the motion. Thanks
-
@grssll what ‘relay’ are you talking about?
-
@kayakbabe
3v coil relay to turn on led strip with motion and when timer expires turn off -
@kayakbabe 3v coil relay to turn led strip on with motio and off after timer expires
-
@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.
-
@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
-
@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?