Understanding how to add custom button to Universal Remote Card

I’m also noticing that this thread mentions this type of code below is how you would call the Plex app in that example. Did I write the code completely wrote in my original script then?

service: remote.turn_on
data:
  activity: plex://
target:
  entity_id: remote.living_room_tv