JosefJantzen / MMM-AlexaControl

Control your MagicMirror with Alexa
MIT License
45 stars 10 forks source link

Turn off monitor via alexa and GPIO relay #34

Closed Simone7000 closed 2 years ago

Simone7000 commented 3 years ago

Hello I would like to use your module to turn off the monitor via a relay connected to the raspberry GPIO with a notification or command via alexa. I thought about installing the MMM-PIR-Sensor module but I can't figure out how to notify the module to activate the relay. Is it possible to do this? Thank you

JosefJantzen commented 3 years ago

Hello the MMM-PIR-Sensor module doesn't describes it but according to the main file the monitor should wake up when you send the notification SCREEN_WAKEUP. If you use that I think you should define a delay after that the monitor turns off. That should work but I can't test it.