Add MPD to HA

I’ve been following this article and I now have a Pi Zero with USB sound and MPD installed and running. Raspberry Pi Zero W as a media_player for Home Assistant | leon-schmidt.dev

However, the YAML is being rejected by HA…
Error loading /config/configuration.yaml: mapping values are not allowed here
…at the name: line. I’ve tried without the quotes and no dice. It doesn’t like it.

media_player:
  - platform: mpd
    name: "Leons Smart Speaker"
    host: 10.0.30.99

So how do I get my MPD device into HA please?

I found this… Music Player Daemon (MPD) - Home Assistant
… got the integration to connect, but having difficulty getting audio out and the device is not being listed in the automations for announcements, which is what I wanted it for.

Still struggling with this.

OK - managed to get it playing music via Music Assistant seeing the speaker under the MPD… but I’m not having much luck with the final step, which is getting HA to play an announcement to it as a result of an automation.

At this point, I’m at the brick wall.