Hello,
I have writting a small flow to play Plex playlist on my TV with HA but I am unable to send this json object:
{
"entity_id": "media_player.plex_plex_for_lg_lg_oled65c9pla",
"media_content_type": "PLAYLIST",
"media_content_id": '{ "playlist_name": "Dance", "shuffle": "1" }'
}
The problem is with the last line. Single quotes does not work (unexpected " error) and I have tried to use scape char \ before the double quotation but, then, the behind application does not work saying that double quotation is required ("Call-service API error. Error Message: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)").
If I make the call-service from HA, there is no problem but I would like to use it in Node-red.
Any help would be very welcomed. Thanks!!