Home Assistant open Channels Guide when press guide button?

Hey,

I’ve come into a third party Apple TV remote that has a guide button. I’d like to be able to press it and open the guide on channels, I was thinking Home Assistant and buying a Broadlink RM4 to set this up. Has anyone done this before or got something similar working?

I'm confused. Why do you need the Broadlink if you have an Apple TV?

I'm not sure if their API includes an endpoint for the guide. But if it does, you can do something like this with a shell command. The IP is the address of your Apple TV, so you'll probably want to give it a static IP on your router

shell_command:
  channels_pause: "curl -X POST \ http://192.168.1.34:57000/api/pause"
  channels_stop: "curl -X POST \ http://192.168.1.34:57000/api/stop"

I think on TVos the api only works when the app is open. In any event I can’t reprogramme the guide button to open another app or run a script by itself, so I was going to connect the RM4 so it could detect the guide button being presssd and run the home assistant script to open the channels app if that’s possible.

That's correct. But you can use the Apple TV integration to open the app first.

I could be wrong but I think the Broadlink only sends signals, it does not receive them.

I think you need a remote that will integrate directly in HA. Then you can do whatever you want with it.