home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.68k stars 30.81k forks source link

Amazon Polly TTS Error. #77264

Closed Daniel-dev22 closed 1 year ago

Daniel-dev22 commented 2 years ago

The problem

I am seeing this weird error in my logs and I am seeing a notification that automation could not be setup. Although it's not true as the automations are working without issue.

Logger: homeassistant.config
Source: config.py:455
First occurred: 9:22:54 AM (4 occurrences)
Last logged: 9:23:43 AM

Invalid config for [automation]: Invalid trigger configuration. Got OrderedDict([('default_config', {}), ('tts', [OrderedDict([('platform', 'amazon_polly'), ('aws_access_key_id', 'redacted), ('aws_secret_access_key', 'redacted), ('engine', 'neural'), ('voice', 'Joanna'), ('text_type', 'ssml')])]), ('group', OrderedDict([('bedroom_motion_detectors', OrderedDict([('name', 'Bedroom Motion Detectors'), ('entities', ['binary_sensor.bedroom_motion_sensor_1_home_security_motion_detection', 'binary_sensor.bedroom_motion_s.... (See /config/configuration.yaml, line 13).

I redacted the keys above ^

It's weird as line 13 is simply

group: !include groups.yaml

Additionally there are no triggers that look like what it is suggesting. That's literally my Configuration for Polly and it's not used in automations it's reading the configuration file as part of automation?

I have never seen this error and made no changes to the file to cause this.

What version of Home Assistant Core has the issue?

2022.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: amazon_polly
    aws_access_key_id: redacted
    aws_secret_access_key: redacted
    engine: neural
    voice: Joanna
    text_type: ssml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include templates.yaml
mqtt: !include mqtt_sensors.yaml
alert: !include alerts.yaml
switch: !include switch.yaml
shell_command: !include shell_command.yaml
rest_command: !include rest_command.yaml
sensor: !include sensor.yaml

Anything in the logs that might be useful for us?

No response

Additional information

No response

Daniel-dev22 commented 2 years ago

Still seeing this error. Every automation reload. Again all automations are functional and it is an extremely weird error given that it has nothing to do with automations, triggers and automations work when home assistant says they couldn't be setup.

Daniel-dev22 commented 2 years ago

It seems that Polly is broken. As Polly is not working. That may be why it is pulling the tts information of Polly?

Seems to be a Polly issue. I just tried to trigger a Polly automation. It triggered and says it ran but no announcements were made. This automation always worked. Another polly automation works with the same ssml format tags. Trying a service call and it's not working. But somehow the automation worked. This is weird.

probot-home-assistant[bot] commented 2 years ago

amazon_polly documentation amazon_polly source (message by IssueLinks)

tunisiano187 commented 2 years ago

I have the same problem. I have added polly, restarted HASS, but still not available in the services

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.