Add Webhook Traccar to Home Assistant (Добавление Webhook Traccar в Home Assistant)

LaScaRa year ago

Hello. I created a Traccar server in my Home Assistant. After adding the Traccar integration, I received the following message.
"To send events to Home Assistant, you must configure a Webhook for Traccar.
Use the following URL to configure: https://address/api/webhook/letters_numbers
Check out the documentation for more details.
A Traccar Webhook configuration entry has been created."

Please tell me where I need to add the above address to the Traccar server or i must add it on Traccar Manager? I can`t understand where i must add address.

The second question is how to set up sending locations in Telegram notification?
I found the corresponding code in the instructions. Should it look like this in the configuration file <entry key='notificator.telegram.sendLocation'></entry>? What needs to be specified between '><
Should the line be added after the line with "chatid"?

Добавил перевод на русский для удобства индексации и поиска.
Привет. Я создал сервер Traccar в своем Home Assistant. После добавления интеграции Traccar я получил следующее сообщение.
«Чтобы отправлять события в Home Assistant, необходимо настроить вебхук для Traccar.
Используйте следующий URL-адрес для настройки: https://address/api/webhook/letters_numbers.
Для получения более подробной информации ознакомьтесь с документацией.
Запись конфигурации Traccar Webhook создана».

Скажите, пожалуйста, где мне нужно добавить указанный выше адрес на сервер Traccar или я должен добавить его в Traccar Manager? Я не могу понять, где мне нужно добавить адрес.

Второй вопрос: как настроить отправки места в уведомлении Telegram?
Соответствующий код я нашел в инструкции. Должно ли это выглядеть так в файле конфигурации <entry key='notificator.telegram.sendLocation'></entry>? Что нужно указать между ><?
Следует ли добавлять строку после строки с чат айди?

Anton Tananaeva year ago

For the second question, it should be a boolean flag:

<entry key='notificator.telegram.sendLocation'>true</entry>

For the first one you should probably check the Home Assistant integration documentation.

LaScaRa year ago

Second question.
I have add it <entry key='notificator.telegram.sendLocation'>true</entry> in configuration.
How will it work? When will geolocation be sent?

For first question they write me

Exactly what it say, that is what you add to the traccar client.

And

In the traccar app on your phone.
If you need help with that app look at the documentation provided by traccar for it.
Closing this issue now as there is no issue with the integration.

I can`t find where i must add this API.

Anton Tananaeva year ago

How will it work? When will geolocation be sent?

Have you tried?

LaScaRa year ago

What exactly did you try?
After changing the status of the car, a message was sent to Telegram with geolocation.
And about the webhook, how can I add it to the application on the device?
Home Assistant integration documentation say:

Traccar client
To configure Traccar Client, you must set it up via the integrations panel in the configuration screen. This will give you the webhook URL to use during mobile device configuration. This URL has to be set in the Traccar app.

But i didn`t find where i can set webhook url.

SiriuS3 months ago

This link is added to the traccar client, instead of the traccar server, and goes directly to the home assistant.