and it is working very solid (but not very elegant).
My Problem:
The Docs say
Any field under the <entry> tag in the feed can be used for example trigger.event.data.content will get the body of the feed entry.
What do they mean with “entry tag”?
I looked in the feed_url of the example Home Assistant Podcast but I could not find anything with “entry” I also looked for something like data.content, still having no clue.
I simply cannot figure out to how to get the link for example from Logbuch:Netzpolitik
How should the variable in my message look like, especially in my case and especially how can you find it out?
Now, that does not work for all tags in the RSS, for example pubDate is actually transformed into published. The only reason I know this is because I worked with the underlying Python library in the past - and there is some more documentation available.
To understand what’s actually in the event data you could just log the raw data in your automation:
Update: Didnt work out for now, but I think it was my Problem… will test again and provide the logs because there was an error but I lost the errorlog.
I just created 3 testautomations to find out which trigger should work out.
It is hard to debug this whole thing, because I need to wait for the feedreader event and I just simply cannot rerun the automation because it looks like the automation can just fetch the variables when it has legitimately been triggered. When running it manually via “run”-Button there do not seem to be any Data available…
Nevertheless I still dont get it how to get the variable on my own, or is it really a “written rule” that data.title and data.link always work with rss feeds? If yes: are there any docs where I can get other vars?
system_log.write gives me infos I cannot start with, but it gives me following:
(uploaded on pastebin to prevent spam) lnp_log - Pastebin.com
Unfortunately this is not well documented. I had a look into the source code of the feedparser Python library to understand how the transformation of RSS/Atom feeds works and how information is then presented in this integration.
Comparing the log output with the actual feed, it looks like you get an array with 2 entries - the first entry is the item’s description, and the second entry is the the item’s content:encoded.
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘event’
And in Trace TimeLine :
Triggered manually at 2 novembre 2023 à 10:44:28
Appeler le service “Saisie de texte: Définir” sur News Title
Stopped because an error was encountered at 2 novembre 2023 à 10:44:28 (runtime: 0.02 seconds)
Is there a way to test this locally, as my feed from Biblegateway is once a way and that is a very long wait. I have been trying to get the description but am successful only with the verse.
Only the title and the notification works all other input_text helpers have value of unknown.