Feedreader Event Errors with Automation

I’m having issues with feedreader. I have the following config and automation (telegram bot message when a new release) but I just get ‘homeassistant.exceptions.TemplateError: UndefinedError: ‘trigger’ is undefined’ errors multiple times on start up and can’t see anything in the logbook for events being triggered apart from at start up:

feedreader:
  urls:
    - https://github.com/home-assistant/home-assistant/releases.atom
    - https://github.com/amirzaidi/launcher3/releases.atom
- action:
  - data:
      message: '{{ trigger.event.data.content }}'
      title: '{{ trigger.event.data.title }}'
    service: notify.mobile
  alias: RSS Feed Update
  condition: []
  id: '1520339426085'
  trigger:
  - event_data: {}
    event_type: feedreader
    platform: event

Did you try using double quotes around the templates?

  message: "{{ trigger.event.data.content }}"
  title: "{{ trigger.event.data.title }}"

Bump.

I have the same error. UndefinedError: ‘trigger’ is undefined

- alias: Feedreader
  initial_state: 'on'
  trigger:
  - event_data: {}
    event_type: feedreader
    platform: event
  action:
  - service: notify.telegram_e
    data:
      message: "{{ trigger.event.data.content }}"
      title: "{{ trigger.event.data.title }}"

Working
data
should be data_template of course.

1 Like

i have error. Please help
2020-07-22 11:29:59 ERROR (MainThread) [homeassistant.components.automation] Beep: Error executing script. Invalid data for call_service at pos 1: required key not provided @ data[‘message’]

my automation:

alias: Beep
description: ‘’
trigger:

  • event_data: {}
    event_type: feedreader
    platform: event
    condition: []
    action:
  • data:
    data_template:
    message: ‘{{ trigger.event.data.content }}’
    title: ‘{{ trigger.event.data.title }}’
    service: telegram_bot.send_message