TTS causing nightmares

I’ve setup the coolest assistant with ElevenLabs and OpenAi, created a custom wakeword and got all of that working when using my phone assist widget.

But I cannot for the life of me get TTS working in my home. The microphone works and picks up commands but the TTS which I want announced on my Sonos won’t work. The speaker works with music assistant fine. It seems to be a config issue.

My config in configuration.yaml is:
action: tts.speak
target:
entity_id: tts.elevenlabs
data:
media_player_entity_id: media_player.unnamed_room
message: “What’s up my bro?”

However this brings up errors immediately:

Configuration warnings
Integration error: target - Integration ‘target’ not found.
Integration error: data - Integration ‘data’ not found
Integration error: action - Integration ‘action’ not found.

I can’t seem to figure this out and documentation is extremely limited on troubleshooting. All things involved work perfectly fine. It’s just getting this to work so that announcements and responses are broadcast to my Sonos.

Any tips would be amazing!

This works on my Sonos speakers:

action: media_player.play_media
target:
  entity_id: media_player.living_room
data:
  announce: true
  media_content_id: |
    media-source://tts/amazon_polly?message="What’s up my bro?"
  media_content_type: music
  extra:
    volume: 50

You’ll need to substitute your own TTS engine for amazon_polly.

Getting the same issue

Configuration warnings

Integration error: target - Integration ‘target’ not found. Integration error: data - Integration ‘data’ not found. Integration error: action - Integration ‘action’ not found.