BYD Car - Battery Level as Sensor

Prerequisites:

  • Unlocked BYD Infotainment (able to Sideload)
  • DIplus app Installed (迪加服务)
  • Car connected to WiFi, and reachable by HA

Add a Sensor:

  • platform: rest
    resource: http://BYD_CAR_IP:8988/api/getVal?name=%E7%94%B5%E9%87%8F%E7%99%BE%E5%88%86%E6%AF%94&status=true
    device_class: battery
    name: BYD_CAR_BATTERY
    value_template: “{{ value_json.val | round(2) }}”
    state_class: measurement
    unit_of_measurement: “%”

You need to replace BYD_CAR_IP with your CAR address

After restart, HA will now see the battery level as Sensor

For additional sensors, here the link to the API