Alexa Media Player - TTS do not work

Hello,

i need your help. I try to send a message to my alexa with tts for five days, but it doesn’t work. I have read a lot of tutorials and watched youtube videos, but i have no success :cry:

I have tried to use the Alexa_Media_Player with HACS and i have tried to use the HA Cloud, no success.

Today i found the blueprints for the first time. I have import the Blueprint with the name “Low Battery Cloud TTS Notification”. I have set the device and the media player. After that, i fired the automation manually… no success.

Now i dont know what i can do and what is my mistake. Do you have any good tutorials or idea?

Please share the configuration you used to send the tts and also what error message did you get?

Hello,

i do not have a configuration. I am use a “blueprint” called “Low Battery Cloud TTS Notification”.

blueprint:
  name: Low Battery Cloud TTS Notification
  description: This blueprint will send a Cloud TTS message when a device's battery
    is low
  domain: automation
  input:
    device:
      name: Device
      description: The device that has a battery level.
      selector:
        entity:
          domain: sensor
          device_class: battery
    media_player:
      name: Media Player
      description: The media player to send the TTS message to.
      selector:
        entity:
          domain: media_player
    media_player_volume:
      name: Media Player Volume (Optional)
      description: Set the media player's volume. (Leave at 0 or unset to leave unchanged)
      default: 0.0
      selector:
        number:
          min: 0.0
          max: 1.0
          step: 0.1
          mode: slider
    message:
      name: Message (Optional)
      description: 'Default: "Battery is low on {{ device_name }}"'
      default: Battery is low on {{ device_name }}
    tts_gender:
      name: TTS Gender (Optional)
      description: 'Default: "female"'
      default: female
    tts_language:
      name: TTS Language (Optional)
      description: 'Default: "en-GB"'
      default: en-GB
    battery_level:
      name: Battery level
      description: What level the device should be to trigger the notification.
      default: 10
      selector:
        number:
          min: 1.0
          max: 100.0
          unit_of_measurement: '%'
          step: 1.0
          mode: slider
  source_url: https://community.home-assistant.io/t/low-battery-cloud-tts-notification/255495
variables:
  battery_level: !input 'battery_level'
  device: !input 'device'
  device_name: '{{ states[device].name }}'
  media_player_volume: !input 'media_player_volume'
trigger:
  platform: numeric_state
  entity_id: !input 'device'
  below: !input 'battery_level'
action:
- choose:
  default:
  - condition: template
    value_template: '{{ media_player_volume != 0.0 }}'
  - service: media_player.volume_set
    entity_id: !input 'media_player'
    data:
      volume_level: '{{ media_player_volume }}'
- service: tts.cloud_say
  entity_id: !input 'media_player'
  data:
    message: !input 'message'
    options:
      gender: !input 'tts_gender'
    language: !input 'tts_language'

I have found a mistake. I think the blueprint doesnt work. I get the following message in the file-editor:

unknown tag !<!input> at line 55, column 40:
     ... ry_level: !input 'battery_level'

If i delete the row, the next “input…” is wrong… and so on…

We can try building an automation other than this blueprint. Please share the entity_id of the entity with the battery level and the media player.