Use tv remote controls to trigger actions in HA

TV remote control or any remote control may help to trigger actions in HA; scenarios can be: learn buttons from remote control (for example red / green/ yellow / blue buttons) and create automation to on/off lights, close garage door, start watering etc

you could probably programme an esp8266 do do this. have it setup as an IR receiver, with preset triggers for the learned codes. but, why youd want to do this with an existing tv remote i dont know, as youd also be issuing commands to the tv at the same time. i use to have one of those kameleon universal ones to run all my AV equipment, so, you could change one of those screens to issue commands to your smarthome seperatley to everything else

I just use an older cell phone with wireless and Lovelace gui. In fact quite the opposite as I hate remotes. https://github.com/kbrown01/Vizio_DirecTV

That is TV and DirecTV gui

Perfectly doable as mentioned above.
I actually had the same thing running for years until I got the IKEA spinny knob.

Most remotes has a few buttons that does nothing when in certain states.
The colored buttons usually require you to be in a menu to work.

We also made our react to volume commands so that we issued one command and then the ESP did four more.
To make the steps larger and easier to use.

I have a Logitech Harmony remote and use the Emulated Roku integration. I have the blinds, light, ceiling fan and kettle on there.

Broadlink can handle IR signals and a rtl-sdr, yardstick one or Sinoff RF bridge with Tasmota and Portisch can handle RF signals.
I use some buttons on my TV remote and an old remote for some remote controlled switches in such a setup.
Just know that the TV and remote controlled switches might be listening in and react to the signals.

1 Like

Yes IR transmit, not receive.
There is no way to read IR signals from a Broadlink and trigger on it.

Can someone explain more detailed how can I do this?

There are ready made ESP-devices with transmitters and receivers in them. I would suggest one of them.

Then yaml like this:

remote_receiver:
  pin: D3 # change to correct pin
  dump: all

binary_sensor:
  - platform: remote_receiver
    name: "Yamaha power"
    raw:
      code: [-208, 625, -104, 105, -104, 104, -625, 208, -208, 105, -104, 104, -104, 104, -208]
    filters:
      - delayed_off: 200ms  

The code will be dumped in the console window when you use a remote, then just copy paste it in to the yaml as shown above.

maybe possibly with Node-Red?

Edit:
Hmm…probably not :confused:

It’s my opinion, don’t get me wrong, but why would you do that if you already have a remote control designed specifically for that device? Also, you will use the remote control for more devices simultaneously, which will overcomplicate your life. I’ve been using a universal remote app where I have programmed additional buttons to change my LED light in the living room. It was cool at first, but sometimes I accidentally pressed those buttons, and it became too annoying, so I deleted the commands. Anyway, thank you for sharing this info with us.

Does you phone have a camera?
See… your phone should just be a phone.

There is nothing that makes it more complicated.
Not more complicated than anything else in life.
We used our receiver remote to control the Chromecast, when we powered off the receiver it would turn off the TV also (CEC don’t work that way, just the other way around).
We could press the digits to skip to mm:ss of what was playing on the Chromecast.

Sure, it’s more complex, but so much more useful than having to get the phone to skip forward or backwards.
Or trying to use a voice command that rarely works.

Because you can ?

I have 2 of these, and they work really well

I use HA to control my TV ( very handy when it is lost…again)…

And i use HA to control a lot more…so why would i start using a remote when i can do it all with my phone :thinking:

I much rather prefer physical devices. But I understand some find it easier with the phone

I think the best would be to find some RF remotes instead.
They are easier to i implement in HA. They do not need line of sight and Sonoff and many others already make such ones and a srF bridge that can handle them and integrate with HA.

1 Like