@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