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

Show how often person has been in a zone - for a given time period

$
0
0

Hi!
This might end up being to complex to achieve, but i want to hear if any of you have done anything similier.

First the usecase:
My son has a parttime job at a grocery store, and somehow they forgot to record his working time, so he was asked about some specific days - if he had been on work those days.

Being a teenager - his memory doesnt serve him well :slight_smile:
so to help i - used the history section in home assistant
because i have created a zone, that covers the address of his workplace.
this way i was able to see the days - where he had been in the zone for over 2 hours.
And i could easily help.

Now - it is a bit cumbersome - looking into the history logs etc.
so i was thinking about making a script.
either i ha or in nodered.
i havent determined how to communicate it yet, but it could be either tts, notification or a text sensor.

now to the question:

is it possible to create an automation that looks into the history
and graps all records of person.xx when they spent at least xx amount of time in a give zone.xx
and then return the start zone time + end zone time.
in a given time period… start date - end date?

Best regards
Ronni

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105635

Trending Articles