Has anyone attempted this before: Creating a skill around Polly and Lambda so that your Echo can receive TTS from home assistant? I was thinking you could do something like this:
notify:
- name: "AWS Polly"
platform: command_line
command: "xargs --replace=@ curl -X GET -H 'Content-Type: application/json' -H 'x-api-key: YOUR_API_KEY' -G https://YOUR_API_ENDPOINT.us-east-1.amazonaws.com/prod --data-urlencode 'text=@'"
automation:
- alias: 'Welcome home'
hide_entity: true
trigger:
platform: state
entity_id: group.all_devices
state: 'home'
action:
service: notify.AWS_Polly
data:
message: "Hi, this is your house speaking. Welcome home!"