Unable to send TTS to Alexa via notifications

I keep receiving errors when trying to send a TTS notification to my Office Alexa device via the following yaml entered in the Developer Tools service section. I’m new to Home Assistant so am probably doing something silly. I’m using the Nabucasa cloud to connect to Alexa and I can send TTS successfully if I use the Mini Media Player. I have recently migrated from a Raspberry Pi 4 to a Optiplex 7090 so I am not sure if this has something to do with it.

Thanks for any help

service: notify.alexa_media_office
data:
  message: The garage door has been open for 10 minutes.
  title: Your Garage Door Friend
  target: 
  data: tts

This is the error I am seeing when I press the “Call Service” button

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:140
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 21:20:31 (4 occurrences)
Last logged: 21:23:14

[139770957485184] Error handling message: expected dict for dictionary value @ data['data']. Got None (invalid_format)

Here is my log file

[139770957485184] Error handling message: expected dict for dictionary value @ data['data']. Got None (invalid_format)
21:30:10 – (ERROR) Home Assistant WebSocket API - message first occurred at 21:20:31 and shows up 5 times
websocket_api script: Error executing script. Invalid data for call_service at pos 1: expected dict for dictionary value @ data['data']
21:30:10 – (ERROR) helpers/script.py - message first occurred at 21:20:31 and shows up 5 times
Error while executing automation automation.cupboard_door_close: expected dict for dictionary value @ data['data']
21:09:25 – (ERROR) Automation - message first occurred at 21:09:15 and shows up 2 times
Cupboard door: Error executing script. Invalid data for call_service at pos 2: expected dict for dictionary value @ data['data']
21:09:25 – (ERROR) Automation - message first occurred at 21:09:15 and shows up 2 times
:0:0 Script error.
21:08:22 – (ERROR) components/system_log/__init__.py
[TapCast-5402(192.168.0.209):8009] Failed to connect to service ServiceInfo(type='mdns', data='TapCast-5402._googlecast._tcp.local.'), retrying in 5.0s
21:05:29 – (ERROR) /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py
192.168.0.223 is not logged in to a HEOS account and will be unable to retrieve HEOS favorites: Use the 'heos.sign_in' service to sign-in to a HEOS account
21:05:29 – (WARNING) Denon HEOS
Failed to determine cast type for host <unknown> (<urlopen error [Errno 111] Connection refused>) (services:{ServiceInfo(type='mdns', data='TapCast-5402._googlecast._tcp.local.')})
21:05:29 – (WARNING) components/cast/helpers.py
Platform automation does not generate unique IDs. ID 1664649997959 already exists - ignoring automation.cupboard_door_close
21:05:27 – (ERROR) Automation
Connection problem to snitun server
21:05:27 – (ERROR) runner.py
Challenge/Response error with SniTun server (0 bytes read on a total of 32 expected bytes)
21:05:27 – (ERROR) runner.py

Mine looks like this :

service: notify.alexa_media
data_template:
  target:
    - media_player.office_flex
  data:
    type: announce
  message: >-
    System Issue Logged, {{
    states.sensor.zabbix_alerts.attributes.subject.split(':')[1] }}.

Thanks very much Neil, I was missing the ‘type’ under the data parameter, the following now works

service: notify.alexa_media_office
data:
  message: The garage door has been open for 10 minutes.
  data:
    type: tts
1 Like