Your yaml code works perfectly. But I would like to see if I can add one more “if” statement in addition to your current yaml code. I was hoping you can help me. I still want to keep {{states(rz)}} min to display travel time. But if I’m doing oversea business travel or many km (miles) away, it’s pointless to show travel time. Is it possible to add something like “In addition to display travel time, if travel time is more than 200 minutes, then display “Out-Of-Town” ”?
Go to his GitHub page
Download last beta version and follow the instructions
Do everything step by step and you will have Life 360 working again
Or go to HACS and download beta version from there
I want to show next to my person how long this person is in the current zone. How can I do that? I tried to search for it, but can’t find anything useful.
Hi, I have one more issue. Your code is working fine 99% of occasion to show the “zone” in Friendly Name. But…if the zone contains more than 1 word, such as “San Lunas” or “San Diego”. The return value is “null”. I think the code is probably not being able to insert/replace the single space right after the word “San” with an underscore “". The ideal outcome of the code would be “zone.san_lunas”, so the code could translate the defined zone name into Friendly Name. Now it probably becomes
“zone.san lunas” instead, therefore, it returns to a “null” value. Is it possible to modify the code that if there’s “space” or more than 1 word in states(person), then insert "” in between the 2 words?