Hello. I’m having a little trouble with my device_tracker state. Seems like the home not_home state is not working sometimes. Is there a way I can query this state and send it so I can see what the state is at a given time? I tried this message as the text this but didn’t work:
message: "{%is_state('device_tracker.leo')%}"
Hi Leo! Did this get resolved when you figured out the issue with the home Place in Life360 being hogar instead of home, or do you still need help with this? (BTW, did you see I released a fix for that issue?)
BTW, what you wrote ({%is_state('device_tracker.leo')%}
) isn’t a valid template. If you still need help with this, please provide the whole automation/script/whatever so we can point out what you might need to change.
Hi Phil. Yes, I was able to fix it with your suggestion. I didn’t see the fix but I’ll try it ASAP. As for the template, I figured it out too. I rushed into this without reading. I already read the template instructions. The only thing that didn’t work for me was the Life360 Overdue Update. I set it as the instructions and set 4 minutes for the overdue settings, but the event doesn’t seem to fire if I set my phone to airplane mode or if I turn it off. Not sure if it might be something related to language as well?
thanks for all your help!
Hmm, that shouldn’t be the case. If you put the device in airplane mode, or turn it off, the life360_update_overdue event should fire once the max_update_wait time has expired. How did you determine that the event is not being fired? Did you check home-assistant.log? Are you seeing any errors?