Read the statement by Michael Teeuw here.
Go Big ! Samsung TV
-
You could use a relay that triggers the power button of your TV. Or, if the TV turns on automatically once it gets power from the wall, you could use the relay to turn on/cut off electricity to the TV. I use the latter for my mirror.
There is an excellent guide by @cruunnerr here including wiring and scripts. Have a look.
-
My first idea would be to use the Raspberry Pi as an infrared transmitter using LIRC and send the appropriate ON/OFF commands to the TV.
The second is that there are remote apps for cell phones. So there is also a Samsung TV network remote control protocol. This could also be used to control the TV. On Github, you can find some information about TCP/IP connections with “samsung remote”.
-
Thanks for helping!. I like the ideas.
After some searching i found something interesting!.At this page they have a tutorial for using HDMI-CEC.
Following this tutorial it was exactly what i was looking for.Except the time the TV needs to start it works like a champ :)
-
@mdlefevere Oh, very cool. I wasn’t aware that you could power on/off a TV using HDMI-CEC. I really should keep that in mind the next time this topic comes up. :-)
-
@madscientist we talk about CEC all over this site. usually related to the PIR sensor modules, which use one of the 5 commands used to turn on/off the display.
as I’ve said a few times (maybe 50), my CEC compliant tv will turn on but not off. only on a pi 4.
-
@sdetweil I have to admit I don’t follow every post anymore. I’ve build my mirror like 3 years ago and it’s working the same way it was build ever since. The relay/scripts solution just works without any issues.
So it seems the CEC solution is good for the Pi4 but on a Pi3 the relay solution is better. -
@mdlefevere can you share some pics of your project? I’ve been using a 27 monitor and want to upgrade to a bigger tv since TVs are extra cheap right now. I could get a 50" for about $4-500.
-
I will. But at the moment it’s turned sideways on a bed ;)
The screen res. of this monitor is 1920x1080 which is the same as the monitor i have so there is no extra space. It’s just that my parents can read it :PWhen all is finished and i like it, it might swap it for a 4K monitor to add some more features into it.