Hi,
I want to trigger an automation whenever my device_tracker has been not home for a certain amount of time. The following does not work, because from:
apparently doesn’t work with for:
automation:
trigger:
platform: state
entity_id: device_tracker.foo
from: "home"
for: "00:10:00"
I can’t use to: "not_home"
(which does work with for:
), because I have device trackers that report zones, and I’d rather not list all of my zones in the to: field (and in any case, if they’re moving between two zones, or between a zone and the generic not_home
, I’d like to combine the times when counting how long they’ve been away from home).
Any advice?