Инструкция по установке Installation guide
| Файл File | Назначение Purpose |
|---|---|
diplus2hass.zip |
Архив интеграции Home Assistant (v1.7.0). Внутри находится папка custom_components/diplus2hass.
Home Assistant custom integration archive (v1.7.0). Inside you will find custom_components/diplus2hass.
|
DiPlus-to-hass.apk |
Релизная сборка (v1.7.0). Пустой config.json, вкладка Команды доступна.
Release build (v1.7.0). Empty config.json, Commands tab available.
|
com.van.diplus).
Prepare the head unit: install DiPlus (com.van.diplus).
com.van.diplus) или возможностью его установки.
A BYD vehicle with DiLink head unit and DiPlus (com.van.diplus) installed, or the ability to install it.
adb (только для продвинутых пользователей).
A computer with adb installed (for advanced users only).
diplus2hass.zip.
Download diplus2hass.zip.
custom_components/diplus2hass/.
Extract the archive. Inside you will find custom_components/diplus2hass/.
diplus2hass в директорию конфигурации Home Assistant:
Copy the diplus2hass folder to your Home Assistant configuration directory:
cp -r custom_components/diplus2hass /config/custom_components/
BYDSongPRO). Оно должно совпадать с именем в приложении.
Enter the car name (for example, BYDSongPRO). It must match the name used in the app.
Важно: Important: имя автомобиля в интеграции HA и в приложении должны совпадать. На это имя завязаны все сенсоры и трекер. the car name in the HA integration and in the Android app must match. All sensors and the tracker depend on this name.
Если интеграции нет в каталоге HACS, используйте ручную установку через diplus2hass.zip.
If the integration is not in the HACS catalog, use the manual installation from diplus2hass.zip.
DiPlus (com.van.diplus) —
обязательное условие. DiPlus-to-hass читает данные из локального HTTP-API DiPlus на 127.0.0.1:8988.
is mandatory. DiPlus-to-hass reads data from the local DiPlus HTTP API at 127.0.0.1:8988.
diplus.1.3.8-beta18.apk) и установите его с флешки, из мессенджера или файлового менеджера.
If DiPlus is not installed, obtain the APK (for example, diplus.1.3.8-beta18.apk) and install it from a USB flash drive, messenger or file manager.
adb shell
curl http://127.0.0.1:8988/api/getDiPars?text=SOC
ADB не требуется для обычной установки. Он нужен только для отладки, извлечения логов или установки APK с компьютера. ADB is not required for normal installation. It is only needed for debugging, log extraction or installing APKs from a computer.
adb devices
adb install -r DiPlus-to-hass.apk
443 для HTTPS или 8123 для HTTP.
Port — usually 443 for HTTPS or 8123 for HTTP.
Важно: Important: даже если подключение к HA отсутствует, приложение будет собирать данные из DiPlus и выводить их на экран. При появлении связи данные отправятся в HA. even if the connection to HA is unavailable, the app will keep collecting data from DiPlus and displaying it. When connectivity appears, the data will be sent to HA.
По умолчанию приложение не обрабатывает команды из Home Assistant. Чтобы включить управление: By default the app does not process commands from Home Assistant. To enable control:
DiPlus-to-hass, и нажмите OK.
Enter a name, for example DiPlus-to-hass, and click OK.
По умолчанию приложение передаёт в Home Assistant все доступные сигналы. Чтобы ограничить набор, на главном экране отметьте галочками только нужные атрибуты. Чекбокс в шапке таблицы быстро выбирает или снимает все сигналы, а клик по заголовкам столбцов сортирует таблицу. Фильтр сохраняется в настройках и включается в экспорт/импорт конфигурации. By default the app sends all available signals to Home Assistant. To limit the set, on the main screen check only the attributes you need. The header checkbox quickly selects or deselects all signals, and clicking column headers sorts the table. The filter is saved in settings and included in config import/export.
В Настройках доступны кнопки Импорт конфига и Экспорт конфига. Экспорт сохраняет настройки (включая фильтр сигналов, флаг управления из HA и флаг подробного лога) в JSON-файл в папку загрузок с именем вида config_diplus2hass_YYYYMMDD-HHmmss.json. Импорт ищет файлы по маске config_diplus2hass_*.json в папке загрузок и в других доступных приложению папках.
In Settings the Import config and Export config buttons are available. Export saves settings (including the signal filter, control-from-HA flag and detailed-log flag) to a JSON file in the Downloads folder with a name like config_diplus2hass_YYYYMMDD-HHmmss.json. Import looks for files matching config_diplus2hass_*.json in the Downloads folder and in other folders accessible to the app.
После загрузки ГУ приложение кратковременно появляется на экране и сворачивается — это повышает надёжность работы в фоне. After the head unit boots, the app briefly appears on screen and then minimizes — this improves background reliability.
В Home Assistant должны появиться: In Home Assistant you should see:
Для диагностики включите Писать подробный лог в настройках — тогда в лог будут записываться команды и ответы DiPlus. Лог в памяти ротируется при 5 МБ и экспортируется в Downloads с меткой времени. Лог-файлы также можно извлечь через ADB: For diagnostics enable Write detailed log in settings — commands and DiPlus responses will be recorded. The in-memory log rotates at 5 MB and can be exported to Downloads with a timestamp. Log files can also be extracted via ADB:
adb shell run-as com.diplustohass ls files/
adb logcat -s DiPlusToHass:D
Разработка и поддержка приложения и интеграции требуют времени. Любая поддержка приветствуется! Development and support of the app and integration take time. Any support is appreciated!
TRvVmtB2ztxBa324JxtfaUMB3oAvKKJ1X5
1NhdHQ14JRx9iV3tshqq7Syj7aMaK38uxg
0x4100f28e4c650423eb351fc005c97b8d620d1494
Платежный агрегатор Payment aggregator
Банковские карты Bank cards
2200 7006 1069 1486
2200 1523 9377 1947
2202 2032 6583 9417
2200 2414 5379 1539
Все действия с программным обеспечением, настройками автомобиля и системой Home Assistant вы выполняете исключительно на свой страх и риск. Авторы не несут ответственности за возможные повреждения оборудования, изменение настроек автомобиля или потерю данных. All actions involving software, vehicle settings and Home Assistant are performed at your own risk. The authors are not liable for any possible hardware damage, vehicle setting changes or data loss.