You can do a lot of cool stuff with Roku with nothing more than API calls. No auth needed. I can query my Roku using Postman and get a list of available appIDs (or Channels) and then directly launch a specific app via the ID.
https://developer.roku.com/docs/developer-program/discovery/external-control-api.md#ExternalControlAPI-SSDP(SimpleServiceDiscoveryProtocol)
I found the HA component for Roku, and it works as advertised. After enabling it in the config, I could use the Service GUI and sent a “Home” key press.
But it is limited to “remote type” things only. It can only do what the remote does like send a “Home” command. I want to automate launching a specific channel. Since it can talk to the Roku I assume it is making API calls somewhere. I found the code below and looked at it, but I’m still learning the HA ecosystem so I haven’t figured out what/where I can accomplish modifying the API call.
https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/roku
For example, if in Postman I do a
POST http://192.168.1.15:8060/launch/20197
It will launch the Channel ID 20197. This is what I want to automate. For example launch the radio channel in the morning and such.
Can someone point me in the direction? So far all the posts I found in the forum are more about discovery 'n such.