I am trying to set up text-to-speech for my alexa integration. I have the following code which should work according to me and according to ChatGPT:
action:
- service: notify.alexa_media
data:
target:
- media_player.my_echo_dot
message: "Hello! This is a test message from Home Assistant."
data:
type: "tts"
But upon saving the automation I get Message malformed: value should be a string for dictionary value @ data['actions'][0]['action'] and Error in describing action: n.action.split is not a function or its return value is not iterable
Am I just blind for not seeing something obvious that is wrong with my code?