How to flicker lights when football club scores?

I’ve found the following RSS feed listing all goals from my favorite club.
https://rss.voetbalwedden.net/goals.php?team=8640
But I don’t know how to use that input to activate a scene for example.

Keep in mind, this is a polling service, so it wont notify you until you poll. So you wont know right away. But if you set the scan_interval to something fairly quick, you’ll know within that time limit.

The default scan interval is 1 hour.

Look at their examples for creating automations based on feedreader events.

I’ve never used this, but I “think” you can do the following…

It looks like this integration will store the events as they come on first run, then only notify you up new events. Meaning, this has to be running while receiving events (it wont notify you of passed events while Home Assistant was off)

automation:
  - alias: RSS Score Parsing
    trigger:
      platform: event
      event_type: feedreader
    # Assume the only feed is the one we care about. Can add parsing
    # here to make sure we only capture the ones we care about. 
    # As such, we assume every single new event is a score event and nothing else. 
    condition: []
    action:
      # Toggle a light X times. 
      - repeat:
        count: 6 # keep even so it returns to previous state
          sequence:
            - delay: 1
            - service: light.toggle
              data:
                entity_id: "light.{{ light }}"

You could also do something with the actual output of the feed. For example,

trigger.event.data[0].title 

will get you the title of the last event. You could parse this in ways and do different things.

I’m very thankful that you respond to my post!
Unfortunately, I’m just new to Home Assistant and therefore don’t know how to connect everything properly. Can I store all this code in the config.yaml?

feedreader:
  urls:
    - https://rss.voetbalwedden.net/goals.php?team=8640
    - https://www.nu.nl/rss/Sport
  scan_interval:
    minutes: 1
  max_entries: 5
  
automation:
  - alias: RSS Score Parsing
    trigger:
      platform: event
      event_type: feedreader
    # Assume the only feed is the one we care about. Can add parsing
    # here to make sure we only capture the ones we care about. 
    # As such, we assume every single new event is a score event and nothing else. 
    condition: []
    action:
      # Toggle a light X times. 
      - repeat:
        count: 6 # keep even so it returns to previous state
        sequence:
            - delay: 1
            - service: light.toggle
              data:
                entity_id: entity_id: light.yeelight2

Any help in the good direction would be very appreciated.

feedreader would go in your configuration.yaml

The automation would go in your automations section.

Note, if you are going to add https://www.nu.nl/rss/Sport as a 2nd feed, you’re going to have to modify the automation to check which feed sent the update. Otherwise, you’ll get blinking whenever either feed updates.

@belikerich did you ever figure this out? Looking to implement something like this myself.

Yes, please look into this Team tracker: