Infrared TV / AV

Hello,

I have configured my RPi with lirc to control Sony TV & Yamaha AV.
I use some command like :

irsend SEND_ONCE Sony KEY_POWER

I saw command_line, shell_script, media_player universal. I don’t know the best way to make it work easily in HAAS. Any advice ? Thx.

I prefer command line for things like this. Just keep in mind that any scripts or commands you use from WITHIN HA will be run as the HA user, so make sure you extend the proper rights in whatever case.