Hi I hope someone can help me. The Power attribute: The Traccar data includes a “power” attribute with a value of 12.4, but it is not present in the Home Assistant data. This suggests that the “power” attribute is not being copied to the device tracker entity in Home Assistant as expected ? .
Also the Battery attribute: In the Traccar data, the “battery” attribute has a value of 4.104, while the Home Assistant data shows a value of -1 for the “battery” attribute. It seems that the battery information is not being correctly reported or retrieved in Home Assistant.
here are my traccar data and home assistant states data (with geodata ect redacted)
Traccar Data
`[{"id":241,"attributes":{"priority":0,"sat":13,"event":240,"ignition":false,"motion":false,"rssi":5,"io200":0,"io69":1,"pdop":1.0,"hdop":0.7000000000000001,"power":12.4,"battery":4.095,"io68":0,"operator":23420,"odometer":4118,"distance":0.0,"totalDistance":102.95,"hours":25000},"deviceId":1,"protocol":"teltonika","serverTime":"2023-07-09T08:12:01.000+00:00","deviceTime":"2023-07-09T08:12:00.000+00:00","fixTime":"2023-07-09T08:12:00.000+00:00","outdated":false,"valid":true,"latitude":REDACTED,"longitude":REDACTED,"altitude":164.0,"speed":0.0,"course":284.0,"address":"REDACTED","accuracy":0.0,"network":null}]
`
HA State Data
source_type: gps
latitude: REDACTED
longitude: REDACTED
gps_accuracy: 0
battery: -1
tracker: traccar
address: REDACTED
speed: 0
altitude: 164
motion: false
traccar_id: 1
geofence: Home
category: null
status: offline
icon: mdi:car
friendly_name: CAR
I have also checked my Debug log ( i do not know if this helps, and see the following ( it seems to show the data is coming in ?? )
DEBUG (MainThread) [pytraccar] API response: [{'id': 241, 'attributes': {'priority': 0, 'sat': 13, 'event': 240, 'ignition': False, 'motion': False, 'rssi': 5, 'io200': 0, 'io69': 1, 'pdop': 1.0, 'hdop': 0.7000000000000001, 'power': 12.4, 'battery': 4.095, 'io68': 0, 'operator': 23420, 'odometer': 4118, 'distance': 0.0, 'totalDistance': 102.95, 'hours': 25000}, 'deviceId': 1, 'protocol': 'teltonika', 'serverTime': '2023-07-09T08:12:01.000+00:00', 'deviceTime': '2023-07-09T08:12:00.000+00:00', 'fixTime': '2023-07-09T08:12:00.000+00:00', 'outdated': False, 'valid': True, 'latitude': REDACTED, 'longitude': -REDACTED, 'altitude': 164.0, 'speed': 0.0, 'course': 284.0, 'address': 'REDACTED', 'accuracy': 0.0, 'network': None}]
I really hope someone can please help me
Craig