Wait for 5.2. There are some known issues in 5.1.
5.2 came out last night and I updated again, however I still get the same issue regarding the Geofence attribute being the wrong data type.
2022-07-18 21:24:53 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant_p3_10/lib/python3.10/site-packages/homeassistant/components/traccar/device_tracker.py", line 250, in _async_update
await self._api.get_device_info(self._custom_attributes)
File "/srv/homeassistant_p3_10/lib/python3.10/site-packages/pytraccar/api.py", line 117, in get_device_info
geofence = self.geofences[dev["geofenceIds"][0]]
TypeError: 'NoneType' object is not subscriptable
Should this have been fixed in 5.2? Downgrading to 5.0 seems to fix it.
Are you sure your device is in a geofence?
No its not, I dont use Geofences.
Then it seems like a bug in the Home Assistant.
Its been introduced in 5.1/5.2 specifically, but I will go back to github and see what they say.
It looks like the issue was in the pytraccar:
https://github.com/ludeeus/pytraccar/commit/ec35c3bb93064a87e884376aea7d02b33980a54b
Ok, I'll bump my pytraccar version and see if that fixes it. Cheers
That seems to have done it, much appreciated.
Hi,
but what is pytraccar? I don't remember ever installing it.
Should it be installed on the traccar server or home assistant?
I also installed 5.2 but it still doesn't go
It's probably a dependency of the home assistant package.
I don't quite understand, I am using the official home assistant traccar integration (https://www.home-assistant.io/integrations/traccar/)
For the time being I am staying on 5.0 until that one is updated.
Thank you
You can see they rely on an outdated version of pytraccar:
https://github.com/home-assistant/core/blob/dev/homeassistant/components/traccar/manifest.json
Hi,
I've tried to update to 5.1, but once the update is finished the official home assistant integration no longer receives data from traccar!
Is there a configuration to do or is it a bug?
Thanks