Hi,
Normally I can wrap my head around these things but I am struggling with this one. I can’t seem to work it out with all the moving parts.
Using a device tracker (in my case the icloud3 and beta app) how can I get a sensor that says how many days its been since I was last in a zone. I need the sensor to persist between reboots so it doesn’t reset. For this I am attepting to use MQTT with the retain flag.
No matter what I try I cant get the device tracker to fire the MQTT reliably or in the right time format. Also all my automations end up being so long to write as I am having to repeat the code.
Any pointing in the correct direction or sample code would be really helpful.
Thanks!
Bob