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
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