#How do I populate a template sensor with text?

1 messages · Page 1 of 1 (latest)

lilac river
#

I'm trying to populate a sensor with text data from an LLM response, and I cannot for the life of me get this custom event to trigger from a manual event in an automation. How do I get this raw attribute populated?

- trigger:
    - platform: event
      event_type: "middlebrook_menu_update"
  sensor:
    - name: "Middlebrook Menu Raw"
      unique_id: middlebrook_menu_raw
      attributes:
        text: "{{ trigger.event.data.text }}"
quick finch
#

You need a state, it's value can be anything, but you have to have one.

If that doesn't solve it, you'll need to share the Event action for us to do anything other than guess.