Latest podcast episode on Sonos using Home Assistant

Find the RSS feed url

Find your podcast on Apple's iTunes site. For example:
https://podcasts.apple.com/us/podcast/ochtendnieuws-bnr/id1544449495

Copy the url to https://getrssfeed.com/ to find the RSS feed url.

For example:
https://www.omnycontent.com/d/playlist/8257a063-6be9-42fa-b892-acd4013b1255/52ce962c-348e-4072-959d-adc80089fc68/23074c8b-94ff-4fce-99b7-adc80089fc8d/podcast.rss

Use Home Assistant to scrape the RSS feed for episode links

Add a Scrape integration in Home Assistant to find the urls of the mp3's in the rss feed.

In Home Assistant go to Settings > Devices & services > Add integration > Look for "Scrape".

- Paste the url into the resource field
- Enter a name (for example "bnr_ochtendnieuws")
- set the Select to "enclosure"
- and the Attribute to "url"

You should now have a sensor that shows the url to the latest episode. For example:
https://traffic.omny.fm/d/clips/8257a063-6be9-42fa-b892-acd4013b1255/52ce962c-348e-4072-959d-adc80089fc68/13aaf303-d706-4b84-bafe-b1ab004d5ed4/audio.mp3?utm_source=Podcast&in_playlist=23074c8b-94ff-4fce-99b7-adc80089fc8d

Call a service to start the episode

Now you can call a service this:

service: media_player.play_media
target:
  entity_id: media_player.living_beam
data:
  media_content_id: "{{ states('sensor.bnr_ochtendnieuws') }}"
  media_content_type: music