Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102976

RESTful sensor count or retrieve Headers

$
0
0

Hi all,

I’m hoping that someone can help. I’m trying to use a RESTful sensor on an API, to get the total number of entries only (don’t care at this stage about the data in it).

Basically the endpoint provides a JSON list and I just want to know how many items in the top level of the list.
Is there a way to loop through these and count using this sensor?
Alternatively, the Header provides a “total” which gives me exactly what I want, can HA retrieve the headers?

Thanks!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 102976

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>