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

Data_template error

$
0
0

@maurizio53 wrote:

I have this automation:

- id: Buongiorno info HUB
  alias: Info
  initial_state: true
  trigger:
    - platform: time
      at: '13:45:00'
  condition:
    - condition: state
      entity_id: input_boolean.mauhome
      state: 'on'
  action:
    - service: tts.google_translate_say
      entity_id: media_player.studio, media_player.sonos_stereo
      data_template:
        message: >-
          Sono le {{states('sensor.time')}},
          ed è {{states('sensor.dark_sky_summary')}}. 
          La temperatura esterna è di {{states('sensor.temperature_158d0001b95f60')|int|string }} gradi,
          mentre la temperatura interna è di {{states('sensor.temperatura_media_casa') |int|string }} gradi. 
          *Previsioni.* {{ states.sensor.dark_sky_hourly_summary.state }}. 
          *Citazione. * {{state_attr('sensor.wikiquote', 'entries')[-1].summary|striptags}}.

It doesn’t work and if i try to trigger it from the services i get:

extra keys not allowed at @data [‘data_template’]

Where is the error in the data_template?

Posts: 16

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95451

Trending Articles



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