Hit Webhook when channel is tuned?

I use a LinkPi encoder and I have created a custom channel to stream video from one specific app in an Apple TV. Since obviously the app has to be open and steaming video when the channel is selected, I have created a button in Home Assistant that tunes to that stream through the Apple TV Integration (kills any active app, opens the correct app, hits the play button for the video stream).

Now, is there a way a custom channel can hit a webhook when the channel is selected, so I can have an automation in Home Assistant do its magic for me and start the stream? It's kind of like AndroidHDMI for Channels but with Home Assistant being the man in the middle.

Thanks

If you can trigger your HA automation with a webhook, you should be able to incorporate that into a very simple ah4c script.

True, thanks, but I wanted to avoid one more jump...

Im in the beginning stages of doing exactly what you have already done with home assistant on a new M4 mac mini. I am very late to this party - as my old machine couldn’t support any of the user contributed solutions, home assistant, etc. i couldnt even run chrome capture on my old machine.

Ive got the link pi, a custom channel, a spare apple tv, and have been manually “dubbing” using a custom channel for many months.

I was thinking just this morning, about how it would be cool if channels had some simple mechanism with “baked in” network hooks right on the custom channels setup page.

Thinking about this, would it be possible to create a m3U list in ah4c to hit different webhooks (Home Assistant) for each different channel/app on Apple TV?

Your ah4c scripts could include webhooks, and any ah4c notifications can be done by webhook. But, I don't see how they could be directly triggered in an M3U.

Was just looking for something like this. With PLEX and Tautulli, I have a Tautulli trigger for Play/Pause that calls a webhook to Node-Red to turn the lights up/down with you play/pause. That kind of function or when "choosing" a channel I could use the same NR workflow and just hit that. I realize this is not in Channels now...just saying it could be useful.