Read the statement by Michael Teeuw here.
Auto on/off of the TV (not the Pi)?
-
Hey Everyone,
I was wondering if anyone had any ideas on a good way to have the monitor/tv turn on and off automatically at specific times. I know there is an auto on/off module for the raspberry pi, but I was thinking this for the screen itself.
My mirror is set up with a non-smart tv that doesn’t have any options for auto on and off. I have a logitech harmony remote that I haven’t had a chance to try yet , but some quick googling makes me think it doesn’t have the auto start functions. Anyone have any (preferably cheap) ideas?
-
Hi,
@paviro just did want you probably want :)
https://github.com/paviro/MMM-PIR-Sensor
With this you can either turn of the HDMI signal (maybe your monitor goes to sleep then), or you can cut off the power signal of your monitor with a simple relay.
-
-
@zombi27 Yes might consider changing this to ten minutes or so :)
-
-
@zombi27 oh awesome i will have to check this out
-
-
-
I was wondering if there is a way to toggle the power to the TV via HDMI CEC commands (sent by pi) and integrating a PIR sensor?
Example setup: The pi is always powered on. I walk into the room, the PIR senses me, and sends a power on signal to my TV via HDMI CEC command, and the mirror modules are displayed.After a set duration, if no activity sensed by PIR sensor, a power off CEC command is sent to the TV by PI.
Has this been done before?
Any guidance would be much appreciated.
-
CEC implementation is far and wide on monitors/tvs. There’s a client for the Raspberry Pi that you would have to install yourself, possibly (re)compile for your specific setup, and see if it is even able to communicate. This part is outside the scope of MagicMirror, like way out there. :)
You can start by reading the rpi forum: https://www.raspberrypi.org/forums/viewtopic.php?t=15749