Use the bundled Python scripts in scripts/ for repeatable BYD actions instead of rewriting the same pyBYD code each time.
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 below BATTERY_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 scriptsreferences/setup.md if credentials or dependencies are not already configured..env is discovered correctly..env from the same directory as the scripts.BYD_PIN is automatically bridged to BYD_CONTROL_PIN.BYD_VIN or BYD_VEHICLE_ALIAS. If neither is set, the scripts use the first vehicle returned by the account.battery_monitor.py prints alert JSON when below threshold. Delivery should be handled by the caller or automation layer.共 1 个版本