Hi,
I’ve been trying to create a simple test script to play a movie via Plex on my TV. I have the Plex integration up and running, and using the control created by the integration on the “Overview” page I can control the media on my Plex server being played on my TV.
Here’s the script I have so far:
'1607641823096':
alias: Die Hard
sequence:
- service: media_player.media_play
data:
entity_id: media_player.plex_player
media_content_type: "movie"
media_content_id: '{ "library_name": "Movies", "title": "Die Hard" }'
entity_id: media_player.plex_plex_for_samsung_tv_2018
mode: single
However, when trying to execute the script I see the following errors in the logs:
Dec 10 23:53:03 xxx hass[58398]: 2020-12-10 23:53:03 ERROR (MainThread) [homeassistant.components.script.1607641823096] Die Hard: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['media_content_type']
Where have I gone wrong?
Cheers,
Neil.