Page 9 of 9
Re: Python Plugin: Life 360 Presence Detection
Posted: Tuesday 26 September 2023 8:38
by aldodemi
Also may be the token is:
"Y2F0aGFwYWNyQVBoZUtVc3RlOGV2ZXZldnVjSGFmZVRydVl1ZnJhYzpkOEM5ZVlVdkE2dUZ1YnJ1SmVnZXRyZVZ1dFJlQ1JVWQ=="
Re: Python Plugin: Life 360 Presence Detection
Posted: Saturday 18 November 2023 23:40
by Marathon2010
Did implement few years ago life360 plugin vs 2.3.1 from febalci. Also my connection broke few months ago. Got next messages:
2023-08-24 11:16:43.762 Life360 HTTPError code: 403
2023-08-24 11:16:43.762 No Token Received; Please Check Life360 Username and Password
2023-08-24 11:16:43.762 You can Validate Your Credentials in
www.life360.com
2023-08-24 11:16:43.762 Error Authenticating Life360 or Connection Problem...
2023-08-24 11:16:43.762 Please Use Correct Credentials and Restart The Plugin!
Based on earlier comments in this thread I've changed plugin.py and life360.py (both in the zip file
). Changes are commented by "18nov23". Place the two files in the plugin folder (just overwrite), stop the plugin in the hardware section and restart the plugin. And the integration with life360 is working again

Re: Python Plugin: Life 360 Presence Detection
Posted: Saturday 23 December 2023 17:25
by g00fy
Are there still people using this plugin? I still do, but since a few days the authentication seems to go wrong again. Are there more people who experience this?
In forums about Home Assistant I read that people also suffered from it, but a solution has now been found. Could that solution work for this plugin as well? Or do you use something else these days to determine the home status of family members?
Re: Python Plugin: Life 360 Presence Detection
Posted: Saturday 23 December 2023 17:59
by Marathon2010
I'm also facing an issue to connect to the API. The log shows next:
- Life360 HTTPError code: 403
- No Token Received; Please Check Life360 Username and Password
- Error Authenticating Life360 or Connection Problem...
- Please Use Correct Credentials and Restart The Plugin!!!
Using the same credentials to login to the life360 app. Looking into the plugin to find a solution.
Re: Python Plugin: Life 360 Presence Detection
Posted: Sunday 24 December 2023 1:11
by g00fy
It seems they implement a solution in the life360/api.py file of the repo
https://github.com/pnbruckner/life360.git.
Maybe someone knows how to implement it in this plugin also? It look like febalci has stopped development a while ago

.
Re: Python Plugin: Life 360 Presence Detection
Posted: Tuesday 20 February 2024 0:37
by Marathon2010
So, based on Life360 integration, I've created a new plugin (see
https://github.com/TurnOfAFriendlyCard/ ... ger-Plugin for more details).
End result in Domoticz is the same as the Life360 integration (same kind of devices). Created a new topic for this
https://www.domoticz.com/forum/viewtopic.php?t=42045.
Re: Python Plugin: Life 360 Presence Detection (deprecated)
Posted: Monday 14 April 2025 9:33
by sloeber70
Hi,
Since a few days the plugin does not work anymore.
The connection json to upload data into the devices in Domoticz is working fine. So I get the rawdata for all devices.
The batterylevels and speed are update into domoticz. Location NOT anymore.
I get these errors in the log:
2025-04-14 09:22:21.104 Error: GPS: ~~~~^^^
2025-04-14 09:22:21.104 Error: GPS: IndexError: list index out of range
2025-04-14 09:22:36.090 Error: GPS: Call to function 'onHeartbeat' failed, exception details:
2025-04-14 09:22:36.091 Error: GPS: Traceback (most recent call last):
2025-04-14 09:22:36.092 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 317, in onHeartbeat
2025-04-14 09:22:36.092 Error: GPS: _plugin.onHeartbeat()
2025-04-14 09:22:36.092 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 237, in onHeartbeat
2025-04-14 09:22:36.092 Error: GPS: if int(distanceToLoc)<=int(line[3]):
2025-04-14 09:22:36.092 Error: GPS: ~~~~^^^
2025-04-14 09:22:36.092 Error: GPS: IndexError: list index out of range
2025-04-14 09:22:51.082 Error: GPS: Call to function 'onHeartbeat' failed, exception details:
2025-04-14 09:22:51.082 Error: GPS: Traceback (most recent call last):
2025-04-14 09:22:51.082 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 317, in onHeartbeat
2025-04-14 09:22:51.082 Error: GPS: _plugin.onHeartbeat()
2025-04-14 09:22:51.082 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 237, in onHeartbeat
2025-04-14 09:22:51.082 Error: GPS: if int(distanceToLoc)<=int(line[3]):
2025-04-14 09:22:51.082 Error: GPS: ~~~~^^^
2025-04-14 09:22:51.082 Error: GPS: IndexError: list index out of range
2025-04-14 09:23:06.071 Error: GPS: Call to function 'onHeartbeat' failed, exception details:
2025-04-14 09:23:06.071 Error: GPS: Traceback (most recent call last):
2025-04-14 09:23:06.071 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 317, in onHeartbeat
2025-04-14 09:23:06.071 Error: GPS: _plugin.onHeartbeat()
2025-04-14 09:23:06.071 Error: GPS: File "/home/hans/domoticz/plugins/Domoticz-GPSLogger-Plugin/plugin.py", line 237, in onHeartbeat
2025-04-14 09:23:06.071 Error: GPS: if int(distanceToLoc)<=int(line[3]):
2025-04-14 09:23:06.071 Error: GPS: ~~~~^^^
2025-04-14 09:23:06.071 Error: GPS: IndexError: list index out of range
I did already get a new api key for TomTom. No cure.
Switched to OPenStreetMaps. No cure either.
I am on the latest beta version Domoticz.
plugin is uptodate : git pull : already updated..
Re: Python Plugin: Life 360 Presence Detection (deprecated)
Posted: Monday 14 April 2025 18:39
by Marathon2010
I will take a look. My integration (Domoticz 2404.7) is still running fine and location is updated.
Re: Python Plugin: Life 360 Presence Detection (deprecated)
Posted: Tuesday 15 April 2025 19:39
by sloeber70
Hi,
I've restored an earlier version of the Domoticz-GPSlogger-Plugin directory.
The plugin is functioning again.
I can only see 2 possibilties :
or I did delete some files by mistake by doing git pull force
or SSD had errors on the directory..... corruption....
Anyway, the restore did the job.
Re: Python Plugin: Life 360 Presence Detection (deprecated)
Posted: Tuesday 15 April 2025 19:42
by sloeber70

- 2025-04-15_19-40-58.jpg (153.66 KiB) Viewed 568 times
Re: Python Plugin: Life 360 Presence Detection (deprecated)
Posted: Wednesday 16 April 2025 23:37
by Marathon2010
I can confirm your issue is caused by overwriting the file locations.txt which stores your standard locations that show up in the Domoticz device <user>Location. Next time before doing a clean install backup that file and after the clean install copy it back to the folder. So those standard locations are preserved instead of being emptied.
Basically this is what you did by restoring a previous version of the plugin.