r/homeassistant•
EnigmaFitz

Playing Feastive mp3 on Voice Preview via NodeRed - Error: extra keys not allowed @ data['media']

Hello hive mind and feastive greetings to everyone!

This should be really easy, I'm trying to play a specific local mp3 (onemoresleeps.mp3) on my Voice Preview.

Before you ask why I want to run it through nodered, I want to define dates, random song list etc for the doorbell, so I'm writting code to do that :)

Step 1 - Create what I want to do in an automation which works:

action: media_player.play_media

metadata: {}

target:

entity_id:

- media_player.ha_voice_assistant_media_player_2

data:

media:

media_content_id: media-source://media_source/local/onemoresleeps.mp3

media_content_type: audio/mpeg

metadata:

title: onemoresleeps.mp3

thumbnail: null

media_class: music

children_media_class: null

navigateIds:

- {}

- media_content_type: app

media_content_id: media-source://media_source

browse_entity_id: media_player.ha_voice_assistant_media_player_2

announce: true

Step 2 - Create this in NodeRed which fails:

https://preview.redd.it/udmk7rie8y6g1.png?width=659&format=png&auto=webp&s=da8ecf77bf45b09aa38119baa16e3d13afd97559

https://preview.redd.it/osrrxrie8y6g1.png?width=496&format=png&auto=webp&s=86f8b442fbc61e605c92eef3297947933972e871

{
"media": "{\"media_content_id\": \"media-source://media_source/local/onemoresleeps.mp3\", \"media_content_type\": \"music\"}",
"announce": "true"
}

Error:

https://preview.redd.it/8f1bxgfv8y6g1.png?width=848&format=png&auto=webp&s=282b5e4699801858e0c462d46aac811f8ae4fe3d

https://preview.redd.it/9qu2oifv8y6g1.png?width=248&format=png&auto=webp&s=929d8e3e28ccdd659c8dcdf1610e38acdf3e482e

I've tried putting the files both in the expected media folder and in a local\doorbells folder.

I'm sure it's something very stupid I'm doing but I just can't see the issue and I've tried about 8 different ways thus far....

Can anyone see my mistake?

Thanks in advance....

EF.

Posted Dec 13, 2025, 10:37 AM UTC

12
Loading comments…