I apologize if this has been posted before. I have the following XML feed:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="rss.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://simcoecountyschoolbus.ca/rss.xml" rel="self" type="application/rss+xml" />
<title>Simcoe County Student Transportation Consortium</title>
<link>http://simcoecountyschoolbus.ca</link>
<description>School Bus Arrival Schedule for Simcoe County</description>
<ttl>1</ttl>
<language>en-us</language>
<pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate>
<lastBuildDate>Mon, 22 Nov 2021 20:55:03 -0500</lastBuildDate>
<item><title>North Zone</title><description>No Cancellations</description><pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate><guid isPermaLink="false">16376325031</guid></item>
<item><title>South Zone</title><description>No Cancellations</description><pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate><guid isPermaLink="false">16376325032</guid></item>
<item><title>Central Zone</title><description>No Cancellations</description><pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate><guid isPermaLink="false">16376325033</guid></item>
<item><title>West Zone</title><description>No Cancellations</description><pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate><guid isPermaLink="false">16376325034</guid></item>
<item><title>Muskoka</title><description>No Cancellations</description><pubDate>Mon, 22 Nov 2021 20:55:03 -0500</pubDate><guid isPermaLink="false">16376325035</guid></item>
</channel>
</rss>
I have setup the following sensor which successfully converts the feed to JSON…
- platform: rest
resource: https://simcoecountyschoolbus.ca/rss.xml
scan_interval: 3600
name: School Bus Cancellations
value_template: "{{ value_json.rss.channel.item[0].title }}"
That value template works and gives me “North Zone”. But I would like to get all 5 zone titles and descriptions in one sensor. Is that possible? Thank you very much in advance. I love this community!!!