@pploume wrote:
Hi,
Still having difficulties to play around with HA templating …
What I want to do :
get the state of a lamp and/or read it’s brigthness
and send it to rhasspy’s tts (tts works perfectly …)What I have in automation.yaml
- alias: 'rhasspy GetState' trigger: - platform: event event_type: rhasspy_GetState - platform: state entity_id: light.bureau action: - service: rest_command.tts data_template: payload: > {% set myState = light.bureau.attributes %} State is {{myState}}
Log file : Error rendering data template: UndefinedError: ‘light’ is undefined
There is something i’m missing …
Thanks for your help
Posts: 3
Participants: 3