Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95312

TTS in automations.yaml generates an error

$
0
0

@HansHassio wrote:

My smoke sensor sends an RF code which is processed correct and as set in automations.yaml the sensor RF value is reset after 5 seconds. So far so good.

Now I want to use TTS so, when smoke is detected, my Nest hub speaks saying “Alarm” but this does not work so far. With below code in the config and automation files an error is shown:

Invalid config for [automation]: Service tts_google_say does not match format . for dictionary value @ data[‘action’][1][‘service’]. Got None. (See /config/configuration.yaml, line 16).

I have read al what is written in the online Hassio docs but can’t figure out what I am doing wrong, would be great if someone can help me.

configuration.yaml:

tts:
  - platform: google_translate
    service_name: google_say

automations.yaml:

  hide_entity: true
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.overloop_rook
    from: 'off'
    to: 'on'
    for:
      seconds: 5
  action:
    - service: mqtt.publish
      data:
        topic: 'tele/SonoffRF1/RESULT'
        payload: 005015off
    - service: tts_google_say
      entity_id: media_player.kantoor
      data:
        message: 'Alarm'

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>