#Media Player error: `Key 'service' is not expected or supported by the visual editor

11 messages · Page 1 of 1 (latest)

hasty grove
#

So I recently was trying tio make a sound play on a media player. I created a new automationm and built a trigger, then I went to add a media player action. To do so I went to:
Then Do
and selected:
+ ADD ACTION
then chose:
Media Player
then chose:
Play media
On Select Media Player, no matter what media player I choose, I get this error:

Visual editor is not supported for this configuration
* Key 'service' is not expected or not supported by the visual editor.
You can still edit your config using YAML.

action: media_player.play_media
target:
  entity_id: media_player.ca_speaker_1_esphome_i2s_media_player
data:
  media_content_id: ""
  media_content_type: ""
metadata: {}
service: media_player.play_media
`
#

I get the same error no matter what media player I choose and I have tried with ESP32 players, Chromecast, AppleTV, and Onkyo Stereo Reciver.

swift copper
#

remove service:... line, you already have action:... line, it's basically duplicate. service: got renamed to action:

hasty grove
#

Interesting since I am using the GUI to create the "not supported" yaml text 🤔 I get easily tripped up by spelling or indention so use the gui to build my automations. Weird that the gui is building an "illegal" yaml code

iron nexus
#

Did you update to 2024.10? If so, did you clear your cache/hard refresh your browser?

rotund pilot
swift copper
hasty grove
# iron nexus Did you update to 2024.10? If so, did you clear your cache/hard refresh your bro...

Yes, my version is as follows:

Core: 2024.10.1
Supervisor: 2024.10.0
Operating System: 13.1
Frontend: 20241002.2

and I cleared cache then I even tried on a different browser that I don't use for HAOS. same thing. The GUI writes "illegal" code as it adds the service: media_player.play_media line and the GUI calls it out:

Visual editor is not supported for this configuration
Key 'service' is not expected or not supported by the visual editor.
You can still edit your config using YAML.
iron nexus
#

Yeah, seems this is a known issue that should be fixed (hopefully) in the next point release.

hasty grove
#

👍🙂

rotund pilot
#

i had the same issue and i solved it this way