NodeRED, play youtube video on AppleTV

Hi Guys,

I’m new to using Node-RED, made some really basic flows to try out and really love the overview and ease of managing multiple flows.

I try to make a flow when button x pressed → then play a specific YouTube video on a specific AppleTV.

When I try the flow I get the following error:

"Call-service error. extra keys not allowed @ data['0']"

My data JSON:

{
    "entity_id": "media_player.appletv_zithoek",
    "media_content_type": "url",
    "media_content_id": "https://www.youtube.com/watch?v=UZeNhGoC-gQ"
}

Additional screenshots:



HomeAssistant and Node-RED all run on the latest versions.

What am I doing wrong?

I believe media_play is like pressing the play button after a pause - so it takes no parameters. You can see this in Dev Tools where it doesn’t give you any options other than entity. Use play_media instead. Yes, confusing.

Hi Michael,

Thanks for your reply! That seems to have fixed the errors, however now I have nother error that I cannot find much about. Any help would really be appreciated.

msg : string[61]
"Call-service error. 'NoneType' object has no attribute 'apps'"

Where is ‘apps’ coming from? Can you show everything in the call?