Help using trigger-based template sensors

i’m trying to use the new trigger-based template sensors… i have a toy configuration with two or more triggers below that doesn’t parse and produces that following error … any help with formatting with this new capability is appreciated

homeassistant.packages.power.template: 
    - Package power setup failed. Component template cannot be merged. Expected a dict.
# Example configuration entry
template:
  - trigger:
      - platform: webhook
        webhook_id: my-super-secret-webhook-id
    sensor:
      - name: "Webhook Temperature"
        state: "{{ trigger.json.temperature }}"
      - name: "Webhook Humidity"
        state: "{{ trigger.json.humidity }}"
  - trigger:
      - platform: webhook
        webhook_id: my-super-secret-webhook-id1
    sensor:
      - name: "Webhook Temperature1"
        state: "{{ trigger.json.temperature }}"
      - name: "Webhook Humidity1"
        state: "{{ trigger.json.humidity }}"

I think I remember seeing something about template trigger sensors can’t be used in packages yet.

Try putting them in your main config yaml file or maybe even in a regular include file to see if that works.

1 Like

added to configuration.yaml and my toy example works! thanks …

1 Like