How to test a RSS feed automation?

So i’ve followed the guide on setting up a HA Podcast RSS feed, with an alert using pushbullet rather than notification.create.

- alias: 'Alert'
  trigger:
    - platform: event
      event_type: feedreader
  action:
    - service: notify.james
      data_template:
        message: "{{ trigger.event.data.description }}"
        title: "{{ trigger.event.data.title }}"

Now if i trigger this automation through the web interface, i get the following output in my logs.

2018-08-08 13:53:42 ERROR (MainThread) [homeassistant.helpers.service] Error rendering data template: UndefinedError: ‘trigger’ is undefined

That means there is nothing really triggering it, so trigger is basically blank.
How would i check this as i’m trying to test I’ve got the data_template right.

2 Likes

yes, I’ve got the same problem.

I’ve got the same issue too. Did you ever find a solution?

Nope, in the end I setup an example I found for the home assistant podcast, they publish everytime there is a new version.

I can try and find the sensor and automation that I use if you want to see ?

Sure, could be useful. Does that mean you didn’t end up using the feedreader integration? I’m not actually trying to get the HA podcast… it is another RSS feed I want to create an automation based on.

I hope this helps, as i said i never managed to test it, i just set it up and waited to see if i got a notification when they did their podcast. Then i started listening to it.

feedreader:
  urls:
    - http://metoffice.gov.uk/public/data/PWSCache/WarningsRSS/Region/se
    - https://hasspodcast.io/feed/podcast
- alias: 'Alert From Weather RSS Feed'
  trigger:
    - platform: event
      event_type: feedreader
  action:
    - service: notify.james
      data_template:
        message: "{{ trigger.event.data.description }}"
        title: "{{ trigger.event.data.title }}"
1 Like