I created a rest sensor to scrap several in Information from a rss sensor. All the sub entities won’t be published. I created the following sensors:
rss feed:
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:pepper="http://www.pepper.com/rss" version="2.0">
<channel>
<title>mydealz</title>
<description/>
<link>https://www.mydealz.de/new</link>
<atom:link href="https://www.mydealz.de/rss/new" rel="self" type="application/rss+xml"/>
<item>
<category>
<![CDATA[ Sport & Outdoor ]]>
</category>
<pepper:merchant name="Amazon" price="40,90€"/>
<media:content medium="image" url="https://static.mydealz.de/threads/raw/I6vRV/2455385_1/re/150x150/qt/55/2455385_1.jpg" width="100" height="100"/>
<media:thumbnail url="https://static.mydealz.de/threads/raw/I6vRV/2455385_1/re/150x150/qt/55/2455385_1.jpg" width="100" height="100"/>
<title>
<![CDATA[ ALPINA ZUPO SET – Kinder Skihelm & Skibrille Set – Robuster Schutz für Jungen & Mädchen – Matt, pumpkin-orange, 54-58 cm (Prime) ]]>
</title>
<description>
<![CDATA[ <strong>40,90€ - Amazon</strong><br /><img src="https://static.mydealz.de/threads/raw/I6vRV/2455385_1/re/150x150/qt/55/2455385_1.jpg" width="100" height="100"/><br /><strong>UPDATE: Reduziert auf 40,99 € (Größe 54-58 cm)! (party) </strong><br /><br /><hr /><br />Ganz ehrlich, ich finde das ALPINA ZUPO Set gerade zur Skisais... ]]>
</description>
<link>https://www.mydealz.de/deals/alpina-zupo-set-kinder-skihelm-skibrille-set-robuster-schutz-fur-jungen-madchen-matt-pumpkin-orange-48-52-cm-prime-2455385</link>
<pubDate>Tue, 05 Nov 2024 22:56:38 +0100</pubDate>
<guid>https://www.mydealz.de/deals/alpina-zupo-set-kinder-skihelm-skibrille-set-robuster-schutz-fur-jungen-madchen-matt-pumpkin-orange-48-52-cm-prime-2455385</guid>
</item>
<item>
<category>
<![CDATA[ Home & Living ]]>
</category>
<pepper:merchant name="Amazon" price="499€"/>
<media:content medium="image" url="https://static.mydealz.de/threads/raw/1GV8w/2468595_1/re/150x150/qt/55/2468595_1.jpg" width="100" height="100"/>
<media:thumbnail url="https://static.mydealz.de/threads/raw/1GV8w/2468595_1/re/150x150/qt/55/2468595_1.jpg" width="100" height="100"/>
<title>
<![CDATA[ Dreame H14 Pro Nass- und Trockensauger ]]>
</title>
<description>
<![CDATA[ <strong>499€ - Amazon</strong><br /><img src="https://static.mydealz.de/threads/raw/1GV8w/2468595_1/re/150x150/qt/55/2468595_1.jpg" width="100" height="100"/><br /><ul><li>[180°-Reichweite mit flachem Design, uneingeschränkte Saugleistung] Durch das biomimetische Design passt sich der H14 Pro dem Boden nahtlos an und gelan... ]]>
</description>
<link>https://www.mydealz.de/deals/dreame-h14-pro-nass-und-trockensauger-2468595</link>
<pubDate>Fri, 22 Nov 2024 10:26:31 +0100</pubDate>
<guid>https://www.mydealz.de/deals/dreame-h14-pro-nass-und-trockensauger-2468595</guid>
</item>
rests.yaml:
- resource: https://www.mydealz.de/rss/new
scan_interval: 300
sensor:
- name: Mydealz RSS Feed
json_attributes_path: "$.rss.channel"
value_template: "{{ now() }}"
json_attributes:
- item
templates.yaml
- sensor:
- name: Mydealz RSS Feed infos
unique_id: mydealz_rss_feed_infos
state: "{{ states('sensor.') }}"
attributes:
info: >
{% for item in state_attr('sensor.mydealz_rss_feed', 'item') -%}
{{ item.title }}: {{ item.description }}: {{ item.link}}
{% endfor %}