Home Assistant Channel Number

Hi, is there any way to be able to state the current channel number in Home Assistant? I want to use it to help with an automation I am setting up.

Thanks in advance

Please specify: trigger(s), condition(s) if any, action(s)

If you're trying to get the channel number that Channels is currently playing, you can use the Channels API to fetch status.

curl http://$IPADDRESS:57000/api/status

Thanks to the link posted by @maddox, you should have everything you need, whether you want to use the channel number as a trigger or in an action.

So you can ignore my post above. :slightly_smiling_face:

Thanks Maddox. Can you explain how and where do I enter this into Home Assistant. I've never used the Channels API before and I have no idea what to do. I'm assuming I have to put something into the config.yaml file which I am familiar with but not sure what

Thank you in advance

Figured it out with lots of forums saying different things. Got it to work. Can't wait to use the API and see what I can automate. Thanks again