Integrating with IR

So, while I’ve managed to integrate relay control and now a DS18B20 via I2C, I’m ready to take on the next challenge which will be, building a complete activity based remote control with homeassistant and IR.

I have a PI, with a IR transmitter. I would like to know where to start in regards to sending IR commands to devices. Is there an integration for this?

Also, I see a lot of posts regarding installing packages with apt-get, but I’m running hassio OS and so, apt is not recognized. Is there a workaround for this?

Looking forward to the next challenge

Thanks

Basic outline of my idea.

Activity Watch TV

  • Send command (tv on)
  • Send command (tv hdmi1)
  • Send command (receiver on)
  • Send command (receiver tv)
  • Send command (Sat Receiver on)

or for example turn on google chrome

Activity Google Chrome

  • Send command (tv on)
  • Send command (tv hdmi2)

Thanks

Bumpy bump. Pretty please

Have a look at ESP-Home.
I know there is a few threads in that topic regarding ESP-Home.

Ive looked into this, however it seems I need to run ESP-Home on a ESP32 which seems a bit pointless to me considering im already rocking a PI 4.

Im looking at this code

# Example configuration entry
remote_transmitter:
  pin: GPIO32
  carrier_duty_percent: 50%

# Individual switches
switch:
  - platform: template
    name: "Panasonic TV Off"
    turn_on_action:
      remote_transmitter.transmit_panasonic:
        address: 0x4004
        command: 0x100BCBD

Which looks pretty damn perfect, however I cannot install ESP-Home as it is looking for a host?

Any ideas?
Thanks

Either a ESP32 or a ESP8266.
I don’t know of you can do it on the pi, i haven’t bothered with it.
Although my pi is positioned in such a way it could replace a ESP then it has never crossed my mind.
They are so cheap and my time is far more valuable.

Not sure why this is not possible.
Do you get any error messages?

Yea I get unable to contact host.

I tried localhost 127.0.0.1 but I’m guessing it’s looking for a ESP32 running ESP-Home?

I’m thinking of getting one, however if it’s possible on the ESP32 surely it’s possible on the pi.

I could install raspbian and send commands over IR like that