Hi there,
As a cross border commuter I need to file my whereabouts every year to both the tax agencies in both the country of residence and the country I work in. My thought was that it may be possible to automate in HA, since it already has my tracking.
I found the File integration, which I would like to write to a log file, whenever my Person enters some predefined Zones in my working country. All the rest working days will be assumed working from my country of residence.
My goal would be to:
- Trigger when my person has been in a zone for more than 4 hours
- Write the log to a File: timestamp and name of zone
I tried to write an automation, but this is a bit over my current knowledge to get it to work.
alias: Whereabout
description: ''
trigger: // not sure how to add the minimum time in a specific zone
- platform: zone
entity_id: person.john_doe
zone: zone.work_office_a
event: enter
- platform: zone
entity_id: person.john_doe
zone: zone.work_office_b
event: enter
condition: []
action:
- service: notify.john_does_whereabout //Using the File integration
data:
message: '{{person.john_doe}}' //Not sure how to fetch the persons current zone name as variable?
mode: single
Anyone able to help me getting this automation progressed? Or does there exist better ways of doing so? All input is appreciated thanks.
1 post - 1 participant