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

Create a template sensor that keeps track of total number of people at home?

$
0
0

@HA_fanatic wrote:

Trying to create a template sensor that gives me total number of people at home. I use the people entity, so just need help on the syntax to write an array or something using Jinja that holds the entities, then I can use a for loop to add a number each time someone arrives home but subtracts a number when someone is not home.

If this is not possible using template sensors then i will need to use Appdaemon or NodeRed and maybe i will feed that as a sensor to home assistant so i can reference it there, but becuase home assistant is the main one i want to keep track of this logic there.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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