Extreme weather warning automation not working

I’ve long had trouble with this automation because I can only sort of test it and find out it’s not working when there’s an extreme weather event. Which is or has been relatively rare in England. Anyway…

it’s a Feedreader event working off RSS

my automation looks like this

  - alias: 'Alert From Weather RSS Feed'
      platform: event
      event_type: feedreader
      - service: notify.mobile_app_iphone
          message: "{{ trigger.event.data.description }}"
          title: "{{ trigger.event.data.title }}"

and just does not work. " ’trigger' is undefined "

Any ideas?


subscribe to the event in the event tab and see if the event’s working as expected. Also, you’re missing data_template which is required for templating.

I’ve tried it with and without data_template but I’ve got it set back to data_template now.

I’ve subscribed to the event in ‘events’ and then ‘fired’ it. I get a notification sound on my phone but no alert. And besides this

    "event_type": "feedreader",
    "data": {},
    "origin": "REMOTE",
    "time_fired": "2020-08-13T13:28:38.446319+00:00",
    "context": {
        "id": "c012f17cf5bb4a5d9760a994faed2db4",
        "parent_id": null,
        "user_id": "87a045a5c6374f1a94940236189f2687"

nothing else appears in the events listener section

Well, nothings in data so trigger.event.data.description and trigger.event.data.title will fail.

data is empty.

Now you mention it… :rofl: :joy: sorry a bit new to this…

When I go to the feed there is very much an active alert…but it does take ages to load.

And it’s weird that I only get an error in my logs about the automation when there IS an active alert otherwise it’s all quiet on the feedreader front…

Any ideas how I can debug why data is empty?

Thank you!

I’d start by looking in your logs for errors.