IR-transmitter with RPI

I have an Samsung Smart TV from 2013, it doesn’t have Wake on lan, I think about building a simple IR-transmitter (IR-Led, transistor and some resistors) and connect it to the GPIO pin on the Raspberry PI running HASS.IO. From Hass.io i want to be able to send turn on command. The turn off command already works via the samsungtv component when the TV is on. If there isn’t any good solution for this, has anyone any good suggestions how to solve this?

I have seen solutions where an ESP and MQTT is used, but since my TV and raspberry pi is in the same room it would be nice to not need more separate hardware more than the transmitter. And to buy an Harmony or an BroadLink feel unnecessary and overkill since the only thing I need is to send an ON signal to one device.

Thanks in advance!

Hassio will not be fast enough to switch the GPIO at 38kHz for the IR code, so you are going to have to run something in a separate Docker container on the PI. Not my area of expertise.

Coming at it from another angle though, do you have a device attached to the TV you can turn on with Hassio? A media player or amplifier for example? If so all you need is a master / slave powerboard that switches the TV on when it detects the other device drawing power, do a google search for “master slave powerboard” if this sounds like an option.

Not quite the workflow you’ve described, but nevertheless have a look at the Broadlink gear. it’s cheap, works local-only, and for the year or so I’ve had a RM Pro running my living room TV, it’s been flawless.

Hello,

I didn’t mean that hassio itself should switch the GPIO-pin just that it should trigger the event. I’ve seen that there’s an LIRC component to home assistant, but as far as i understood it it only works for receiving IR messages. What i thought was if there was some python script or something that would work. How do i install separate docker containers when running hassio, I thought you had to run home assistant and rasbian to install other programs.

@danpow

Thanks for your response!
Maybe it’s the simplest way, I’ve thought to use a small IR-transmitter since I’ve already have all the components for it. But of course, it’s easier to buy something, but what’s the fun in that?

I just made an ir transmitter for my TV gear so I could send http commands that an esp translates to ir.

I documented it here:
https://sites.google.com/view/randyhomeassistant/ir

I thought about buying the broadcom mini, but I had everything I needed on hand, didn’t buy anything to put this together.

But it still requires an esp.

@randytsuch I am interested in your code but the link expired, could you make a new one?

Greetings Boeke.

Been trying to clean up some of my pages recently, accidentally broke the link

Fixed now, it will work again. I never know if anyone looks at them lol

For the software end, I recently took an ESP32 and loaded tasmota ir on it. Using the chrome webpage loader makes programming it simple. Was also really easy to configure it to read the IR data that goes to my denon receiver. I’m sure it would be easy to make it send IR commands too.

Can you share where can I find the instructions to do that? Thanks!!

Tasmota IR instructions

Here you go. Not much there, but pretty straightforward.

I also think it works better than what I was using LIRC in NR. LIRC seemed to miss some commands, so my flows wouldn’t start. With Tasmota, seems to always work. And I like just needing a little ESP32 instead of having to wire to a pi.