Changing Channels on Android TV Remote

Trying to read and understand this documentation on Android TV Remote and I tried out the example code below and modified it for my device but I can’t get it to work in both scripts nor dev tools. Any insight on what I might be missing here would be great.

action: media_player.epico_box_4
data:
  media_content_type: channel
  media_content_id: 105
target:
  entity_id: media_player.epico_box_4

My intention is to write this into a script to execute upon button push on a Universal TV Remote Card.

Hi, you are using an entity_id as an action:

action: media_player.epico_box_4
1 Like

@Nick4 I believe so, I’ll admit I’m not that familiar between devices and entities in terms of differences. Is there a specific type that needs to be used for actions here?

As @Nick4 mentioned, your action is nonsensical. From the example:

action: media_player.play_media
1 Like

@brooksben11 :man_facepalming: I finally get it now. The action is named to play media but the beginning part named media_player made me think it was the device so I mindlessly started replacing it with the entity name.

Ok let’s go fix that and I’ll report back.

Yup that was it. Officially feel very silly but at least I’ll always take a second look whenever I see action from now on.

1 Like

Glad you got it sorted!

You were already close to the solution by being aware/linking to the documentation of the integration (Android TV Remote) and my hint.
On that page, exactly at the link that you posted (Launching activities) you see that the action is a command (to do something, obviously) and not a reference to an entity.

I know that it can be overwhelming and that the concept of actions, devices and entities can be unclear.
If you want to understand it better: Concepts and terminology - Home Assistant

My belief is to teach someone to catch a fish instead of giving fish.
Also, if you want to get the max out of HA, you have to be willing to read, try (and make mistakes) and believe me, I’m also far from mastering it.

1 Like

@Nick4 I appreciate the encouragement and yes - absolutely agree on the need to study up and not just get the cheat sheets!

Thanks for linking me to those resources. Finding them is ironically the more difficult part for me as I endeavor deeper down this rabbit hole! :rabbit: