I've been running Traccar successfully on a Raspberry Pi for a couple of years, using the web portal and phone app. I've recently set up Home Assistant on a separate Pi and am struggling to get Traccar events to HA. I want to keep the Traccar server where it is but get events to HA for alerts and routines.
I have added the following to the HA configuration.yaml:
device_tracker:
- platform: traccar
host: IP_ADDRESS
port: 8082
username: USERNAME
password: PASSWORD
event: ['all_events']
ssl: false
verify_ssl: false
monitored_conditions: ['deviceTime', 'power', 'ignition', 'all_events']
new_device_defaults:
track_new_devices: true
This generated an URL for a webhook which I added to traccar.xml:
<entry key='event.forward.url'>WEBHOOK_URL</entry>
In HA, I can see entities for my vehicles and they can be located on a map, and the HA logbook shows when the vehicles are detected Home or Away but I'm not getting any events through e.g. Ignition On, leaving GeoFence.
I'm assuming I've got something wrong with the config file additions above but I can't work it out from the searching I've done.
Grateful for any advice. Thank you.
I've been running Traccar successfully on a Raspberry Pi for a couple of years, using the web portal and phone app. I've recently set up Home Assistant on a separate Pi and am struggling to get Traccar events to HA. I want to keep the Traccar server where it is but get events to HA for alerts and routines.
I have added the following to the HA configuration.yaml:
This generated an URL for a webhook which I added to traccar.xml:
<entry key='event.forward.url'>WEBHOOK_URL</entry>
In HA, I can see entities for my vehicles and they can be located on a map, and the HA logbook shows when the vehicles are detected Home or Away but I'm not getting any events through e.g. Ignition On, leaving GeoFence.
I'm assuming I've got something wrong with the config file additions above but I can't work it out from the searching I've done.
Grateful for any advice. Thank you.