Automate action on another entity on IR code receive

hi, i was wondering if i could use the remote receiver component in esphome to run a script or scene upon receiving an IR command?

in summary, i have a tuya smart blind controller that only works over wifi and i wanted to use an old remote to open and close the blinds, rather than using the tuya app, HA or yelling at google assistant.

would this be possible in HA or esphome? (esp32 receives code via an IR receiver module-> pushes to HA - HA runs the blind open scene that i imported from tuya)
i assume id need to learn remote codes too?

still learning but trying to get my head around the logic

Yes it is possible and yes you would have to lean the IR codes.

One way to do it would be this:

Set up the IR receiver to recognise your IR codes.

Then use one of the IR triggers, on_raw, or on_rc5 or on_...etc to automate starting a script in home assistant.

Scripts in home assistant are services.

I concur with Tom, it’s not only possible but also something I have running.
That way I have a physical remote for my Chromecast.

sorry to necro here, @Hellis81 i’m unable to initiate a DM with how new my account is, if you could message me i’d like to chat a little on this. have a DIY amplifier i built, high idle draw, would love to get on/off integrated into the automation with a smart plug initiated from an ir remote

I recommend one of these.
https://m.aliexpress.com/item/1005004486068078.html?spm=a2g0n.productlist.0.0.a455LpU5LpU5Vz&browser_id=d7326794de6c48e2acb9a671a25374bb&aff_trace_key=d39a0d6cbeeb4a0488eea89e92c5107c-1674280573192-08417-mEamIEA&aff_platform=msite&m_page_id=zea5gkmau1acavrr185d2e6e07e5713b3af1a94b9f&gclid=&pdp_npi=2%40dis!SEK!45.42!40.44!!!!!%4021038edf16742806254723152e544f!12000029327246562!sea&curPageLogUid=waRgVSCkF1MN&algo_pvid=60e867b9-98f0-481e-833f-c58a8425ffc5

They are very small but yet very capable.
Then just add the IR section from ESP-Home docs. If you have issues then just post a thread.

1 Like