Skip to content
caiosweet edited this page Jun 30, 2023 · 6 revisions

Jinja helper template

Put this code (copy and paste) into templates.

- {{ states 
| selectattr('object_id','match','notifier.*alexa', ignorecase=true)
| sort(reverse=false, attribute='entity_id')
| map(attribute='entity_id') | join('\n- ') }}
- binary_sensor.notifier_alexa_speak
- button.notifier_alexa_ssml_reset
- group.notifier_player_alexa
- input_boolean.notifier_alexa_smart_volume
- input_boolean.notifier_alexa_ssml
- input_boolean.notifier_alexa_switch
- input_number.notifier_alexa_prosody_pitch
- input_number.notifier_alexa_prosody_rate
- input_number.notifier_alexa_prosody_volume
- input_select.notifier_alexa_language
- input_select.notifier_alexa_method
- input_select.notifier_alexa_type
- input_select.notifier_alexa_voice
- select.notifier_player_alexa
- sensor.notifier_player_alexa

Card Alexa preview



Card Alexa Description

  1. Alexa switch

    On/Off Alexa. Turn Alexa voice notifications on and off.

    input_boolean.notifier_alexa_switch

  2. Player alexa.

    Select the alexa speaker to use.

    select.notifier_player_alexa

  3. Alexa type

    Allows you to select the type of notification "tts" or "announce".

    input_select.notifier_alexa_type

  4. Alexa method

    Only for the "announce" functionality. Check if the ad should be audio only or shown + audio.

    input_select.notifier_alexa_method

  5. Alexa ssml

    Toggle automatic SSML mode on or off. During text processing, if this mode is active, it inserts the necessary tags to reproduce for example Supported speechcons

    input_boolean.notifier_alexa_ssml

  6. Alexa spek

    In addition to indicating when Alexa is speaking, it contains the following attributes:

    skill_id: amzn1.ask.skill.REDATC-
    default_vol: 0.4
    volume: 0.4
    auto_volumes: false
    message: Sono le 5:30, davvero.
    media_player:
    - media_player.sala
    type: tts
    language: it-IT
    event_id: ''
    audio: <audio src="soundbank://soundlibrary/foley/amzn_sfx_clock_ticking_01"/>
    notifier: alexa_media
    method: all
    voice: Alexa
    wait_time: 3
    rate: 100
    pitch: 0
    ssml_volume: 0
    whisper: false
    ssml: true

    binary_sensor.notifier_alexa_speak

  7. Alexa smart volume

    Smart volume, as far as possible, avoids call the service to set the volume, if this is equal.

    input_boolean.notifier_alexa_smart_volume

  8. Alexa voice

    Supported Amazon Polly voices.

    input_select.notifier_alexa_voice

  9. Alexa language

    Supported locales for the xml:lang attribute.

    input_select.notifier_alexa_language

10, 11, 12 - Modifies the pitch, rate and volume of the tagged speech. Prosody

  1. Alexa prosody pitch

    input_number.notifier_alexa_prosody_pitch

  2. Alexa prosody rate

    input_number.notifier_alexa_prosody_rate

  3. Alexa prosody volume

    input_number.notifier_alexa_prosody_volume

  4. Alexa sml reset

    A simple button, to set the default values for the volume, pitch, and rate of the tagged speech SSML

    button.notifier_alexa_ssml_reset

  5. Sensor Alexa

    The sensor returns the currently selected media players as status, separated by a comma and the friendly names and the list of media players as attributes. It is also used to check that they actually exist in the system.

    selected: Sala
    entities:
    - media_player.sala
    icon: mdi:speaker
    friendly_name: Player Alexa Predefinito
    attribution: Centro Notifiche 🔔 Caio & Gianpi by hassiohelp.eu

    sensor.notifier_player_alexa

  6. Group Alexa

    It is the group created automatically, with all the media players selected by the user, during configuration.

    entity_id:
    - media_player.sala
    - media_player.studio
    - media_player.echo_dot
    order: 16
    auto: true
    friendly_name: Gruppo Alexa
    attribution: Centro Notifiche 🔔 Caio & Gianpi by hassiohelp.eu
    icon: mdi:speaker-multiple

    group.notifier_player_alexa

Clone this wiki locally