trying to add the state of a counter (number/integer) to a template.
tried these 2 options unsuccessfully; can you help pinpoint the issue(s) or suggest a better approach? Thanks!
- image:
url: >-
{% set N = states('counter.news_rss_counter') %}
{{ state_attr('sensor.radio_canada_rss', 'entries')[N].image }}
name: "test"
Everything works as expected but one more thing to improve my skills :
the “image.test” entity created will just contain the url/link and not the image file itself; so it is normal not to find the actual image under the local www folder and using the image entity in a card will just fetch the image from the url; are my assumptions correct?