@stetho wrote:
I’ve been fiddling with this all morning but I can’t see what I’m missing. Being at home all this time means I’m adding things to HAss that I’ve meant to for ages. So one of those things is a sensor to count how many people are at home. I’ve got this based on things I’ve found on here and with Google which seems to work fine…
- platform: template sensors: people_away: entity_id: - person.steve - person.[wife] - person.[child1] - person.[child2] - person.[child3] friendly_name: "People Away" unit_of_measurement: 'away' value_template: > {{ states.person | selectattr('state','ne','home') | list | count }}
Obviously the names are edited for this post but it would be so much easier if they were their actual names. Anyway - the front end currently shows this as the wife has gone to work (she’s a key worker before anyone complains).
Exactly what you’d expect. But if I click on either of them I get this
This line never budges. Another weird thing I’ve noticed is that it says “14 hours” which I assumed was the last time HA detected a state change. However, 14 hours ago (11:30pm local time) everyone was at home and it correctly said 5. [wife] left at 8am when the UI updated the number.
It’s not important, it’s just annoying. Do I need to specifically tell something (Recorder, History etc) to record this data? That isn’t a logical conclusion because it’s obviously recording 5 and 0 somewhere but I’m running out of things to prod.
Thanks
Steve
Posts: 9
Participants: 3