- name
- byd-remote-control
- description
- Control and check a BYD vehicle using portable Python helper scripts built on pyBYD. Use when the user wants to check battery state, lock the car, flash lights, start A/C, stop A/C, or build/operate reusable BYD remote-control automation from local scripts and environment variables.
BYD Remote Control
Use the bundled Python scripts in scripts/ for repeatable BYD actions instead of rewriting the same pyBYD code each time.
Available scripts
scripts/battery_check.py, fetch battery %, range, charging state, and timestamps as JSONscripts/battery_monitor.py, fetch battery state and emit an alert payload when battery is belowBATTERY_THRESHOLDscripts/lock_car.py, lock the vehiclescripts/flash_lights.py, flash lights / hornscripts/start_ac.py, start climate controlscripts/stop_ac.py, stop climate controlscripts/byd_common.py, shared helper module used by the scripts
How to use
- Read
references/setup.mdif credentials or dependencies are not already configured. - Run the relevant script from the skill directory so
.envis discovered correctly. - Prefer the existing script over ad hoc inline Python when the task matches one of the bundled actions.
Notes
- The scripts load
.envfrom the same directory as the scripts. BYD_PINis automatically bridged toBYD_CONTROL_PIN.- Vehicle selection can be controlled with
BYD_VINorBYD_VEHICLE_ALIAS. If neither is set, the scripts use the first vehicle returned by the account. battery_monitor.pyprints alert JSON when below threshold. Delivery should be handled by the caller or automation layer.