jkaberg/hass-byd-vehicle
关于
适用于 BYD 车辆的自定义 HASS 集成。
其他项目实测星标增长
- 24小时
- 0
- 7天
- +4
- 15天
- +11
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文BYD Vehicle Integration for Home Assistant
Home Assistant custom integration for BYD vehicles, powered by pyBYD.
[!NOTE] The integration and pyBYD are nearing feature complete. A small number of API values still need final mapping/validation. Follow ongoing mapping work in pyBYD issue #20: https://github.com/jkaberg/pyBYD/issues/20
Installation
Option 1: HACS (Custom Repository)
- Open HACS → Integrations.
- Open the menu (⋮) → Custom repositories.
- Add
https://github.com/jkaberg/hass-byd-vehicleas Integration. - Install BYD Vehicle.
- Restart Home Assistant.
- Add BYD Vehicle from Settings → Devices & Services.
Option 2: Manual
- Open your Home Assistant config directory.
- Create
custom_components/if needed. - Copy
custom_components/byd_vehicle/from this repository into your HA config. - Restart Home Assistant.
- Add BYD Vehicle from Settings → Devices & Services.
Initial setup
Configuration is UI-only via Home Assistant config flow.
[!TIP] Use an dedicated BYD account for the integration, that way you won't be logged out from the BYD app on your main account - see here for instructions.
[!IMPORTANT] If you intend to control the car via the integration (turn on/off A/C, lock the car etc.), it's crucial that you set up an operation/control PIN in the BYD app prior to setting up this integration. This also applies if you use an dedicated account for the integration, which means the dedicated account must also set an control PIN.
| Field | Required | Default | Description |
|---|---|---|---|
| Username | Yes | — | BYD account username (email/phone). |
| Password | Yes | — | BYD account password. The BYD app only uses the first 21 characters, see below. |
| Country | Yes | United Kingdom | Country used for country code and language. |
| Control PIN | No | — | Optional PIN used for remote commands. |
| Climate duration | No | 10 | Climate run time in minutes. |
| MQTT push updates | No | On | Receives command results and telemetry pushes over MQTT. |
| Show BYD inbox messages as notifications | No | Off | Polls the account inbox (at most every 15 min) and posts new messages, eg charging started/stopped, as HA notifications. Adds a "Latest notification" sensor. |
| Debug dump API responses | No | Off | Writes API request/response traces for troubleshooting. |
[!TIP] If you get invalid authentication, verify credentials first, then verify selected country.
[!WARNING] The BYD app silently cuts passwords off after 21 characters, both when the account is created and at login. If your password is longer (eg one generated by a password manager), your real password is only the first 21 characters, so enter just those here. See #147.
After setup
Entity updates are cloud-polled, poll intervals are exposed as entities and can be tuned using automations.
[!TIP] Frequent polling can cause noticeable battery drain. Adjust the polling interval to find your ideal balance between real-time updates and battery drain.
Documentation
- Troubleshooting: docs/TROUBLESHOOTING.md
- Contributing: docs/CONTRIBUTING.md
探索相关项目
加载中…