Hello to everyone.
I have one problem with this integration, in the log i receive this:
Suppressing further errors until OK: get_circles: CommError: HTTPSConnectionPool(host='api.life360.com', port=443): Max retries exceeded with url: /v3/circles.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf01350910>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
get_circles: CommError: HTTPSConnectionPool(host='api.life360.com', port=443): Max retries exceeded with url: /v3/circles.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf050e6c90>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
I donât know why, if i try to connect to api.life360.com i can open the webpage so i think i can reach the server.
Thanks a lot
Stefano
You need to make sure youâre trying that from the exact same context that HA runs in. Also, itâs not uncommon for there to be communication errors with the Life360 server from time to time. Most are filtered out, but occasionally there can still be enough consecutive errors for a log message to be created. However, normally those temporary errors arenât name resolution problems. Sounds like HA is having a problem communicating with the Internet from the context it is running in.
Thanks to @Mariusthvdb I discovered a bug that could cause the last_seen attribute to âgo backwards.â Iâve fixed the bug and added some additional warning messages that should help give better insight into how the integration is working. Iâll be submitting a PR soon, but wanted to give anyone a chance to try the changes first and provide any feedback.
No, you canât do it as a custom component. Or at least I donât think you can. This is because it uses config flow. Youâd have to find where that file is on your system and replace it. If you canât donât worry about it.
Hi,
I read what you said but have come across an issue.
I have tried to remove to: not_home in the automation.
entity_id: device_tracker.life360_mark
for: '00:30:00'
from: home
platform: state
Returns back Message malformed: dependency violation - key "for" requires key "to" to exist @ data['trigger'][0]
when I try to save it.
So I see from my logs the states I am getting are
away
moving
driving
home
from my YAML
life360:
# MPH, assuming imperial units.
# If using metric (KPH), the equivalent would be 29.
driving_speed: 18
interval_seconds: 10
max_gps_accuracy: 200
max_update_wait:
minutes: 45
show_as_state:
- driving
- moving
# Set comm error thresholds so first is not logged,
# second is logged as a WARNING, and third and fourth
# are logged as ERRORs.
warning_threshold: 2
error_threshold: 3
Automation
- entity_id: device_tracker.life360_mark
for: 00:30:00
from: home
platform: state
to: not_home
condition: []
action:
- data:
preset_mode: away
entity_id: climate.central_heating
service: climate.set_preset_mode
does not trigger as I do not see not_home as a state anymore?
True, if you want to use the for option with the state trigger you have to specify a to value.
Those are not the states. Those are the UI translations of them. The states are not_home, moving, driving & home. (If you want to know what the real states are, that you use with automations, you have to look on the STATES page.)
No. It would be because the state changes from home directly to driving or moving without passing through not_home.
By âLife360 appâ, do you mean the phone app from Life360, or do you mean the HA life360 integration? If the former then you should check with them. If the latter, then same answer as my previous reply â maybe itâs a temporary issue with some of their servers. It seems to be working fine for me.
I just checked my log. Seems like there was some server issue that started about two hours & twenty minutes ago, but it seemed to clear up about an hour later (about an hour & twenty minutes ago.)
Anyone else getting marked âAwayâ while youâre sitting at home? The tracker in Home Assistant gets changed to away for a minute or two, yet when I open the Life 360 app it still says Home.
This just started happening about 3 weeks ago. It kicks off automations that start to set the alarm, turn off the lights, etc which is kind of funny when youâre sitting there watching TV or something.