core: Tractive integration doesn't work anymore
The problem
Since a yesterday, Tractive isn’t working for me. Maybe since core-update, but not sure. All entities became unavailable. Then tried to delete the integration and setting it up again. Given the correct user and password it connects, but my both pets aren’t shown no more. The app works fine. In the tractive homepage, both pets are shown. The integration doesn’t find any entity of my two pets. See picture attached. Am I alone with this? Maybe tractive have changed something with the API? I’ve added also
logger: default: warning logs: aiotractive: debug homeassistant.components.tractive: debug
into the configuration.yaml to provide more details.
Thank you for help!
What version of Home Assistant Core has the issue?
core-2024.1.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tractive
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tractive
Diagnostics information
2024-02-06 08:30:52.159 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up tractive platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/tractive/binary_sensor.py", line 65, in async_setup_entry
entities = [
^
File "/usr/src/homeassistant/homeassistant/components/tractive/binary_sensor.py", line 66, in <listcomp>
TractiveBinarySensor(client, item, SENSOR_TYPE)
File "/usr/src/homeassistant/homeassistant/components/tractive/binary_sensor.py", line 31, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tractive/entity.py", line 31, in __init__
name=trackable["details"]["name"],
~~~~~~~~~^^^^^^^^^^^
KeyError: 'details'
2024-02-06 08:30:52.173 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up tractive platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/tractive/device_tracker.py", line 31, in async_setup_entry
entities = [TractiveDeviceTracker(client, item) for item in trackables]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tractive/device_tracker.py", line 31, in <listcomp>
entities = [TractiveDeviceTracker(client, item) for item in trackables]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tractive/device_tracker.py", line 44, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tractive/entity.py", line 31, in __init__
name=trackable["details"]["name"],
~~~~~~~~~^^^^^^^^^^^
KeyError: 'details'
2024-02-06 08:30:52.183 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tractive platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/tractive/sensor.py", line 207, in async_setup_entry
entities = [
^
File "/usr/src/homeassistant/homeassistant/components/tractive/sensor.py", line 208, in <listcomp>
TractiveSensor(client, item, description)
File "/usr/src/homeassistant/homeassistant/components/tractive/sensor.py", line 81, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tractive/entity.py", line 31, in __init__
name=trackable["details"]["name"],
~~~~~~~~~^^^^^^^^^^^
KeyError: 'details'
2024-02-06 08:30:52.233 ERROR (MainThread) [homeassistant.components.switch] Error while setting up tractive platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/tractive/switch.py", line 77, in async_setup_entry
entities = [
^
File "/usr/src/homeassistant/homeassistant/components/tractive/switch.py", line 78, in <listcomp>
TractiveSwitch(client, item, description)
File "/usr/src/homeassistant/homeassistant/components/tractive/switch.py", line 98, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tractive/entity.py", line 31, in __init__
name=trackable["details"]["name"],
~~~~~~~~~^^^^^^^^^^^
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 1
- Comments: 15 (4 by maintainers)
@bieniu is done! We hope the best😉
@bieniu , @paulius2k , I got the similar answer from tractive like @bighippo999.
Was having similar issue, I’d been using my own account that had the device shared with it and it suddenly stopped working. Seeing the issue here I raised it with Tractive support, their reply is below (not very helpful) took a while:
-> Thank you for contacting Tractive.
First, I’d like to apologize for the delay in my response. We are currently handling a high volume of requests and are working through them as quickly as possible. Thank you for your understanding.
I’m sorry to hear that you’re having trouble with the Home Assistant integration.
As this integration is not officially supported by our developers, we are not able to offer any advice or assistance here. At this time, we do not have an official API. In this case, I would recommend asking the developers of this integration for their advice since they would know more about this.
Best regards, ->
I did get it working again by removing my account from the integration and adding it again with the main account holders login instead. The main account only has the 1 device attached to it, so it’s slightly different to the original Guenni9’s report but the issue did appear to me to be around the shared device.
Only really commenting because I did get a reply from Tractive and thought I should add it.
@paulius2k , still now answer from Tractive, I’ll keep you informed. For now, I needed to use two accounts, my own for my dog and my wife’s account for her dog.