Hello everyone,
I am still relatively new to the Home Assistant universe and am currently working on implementing my first projects. I would like to integrate some controls and information from the VW Connect adapter into Apple HomeKit. This already works without any problems with switches and locks. Now I would like to have the battery level and cruising range displayed as well, but this is proving to be not so easy.
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# configuration.yaml
template:
- sensor:
- unique_id: id5_battery_for_homekit
name: "ID.5 Batterie"
unit_of_measurement: "%"
device_class: battery
state: "{{ states('sensor.***_battery_level') | float(0) }}"
- name: "ID.5 Reichweite"
unit_of_measurement: "km"
device_class: distance
state: "{{ states('sensor.***_battery_cruising_range') | float(0) }}"
unique_id: id5_battery_cruising_range
####################################################
# HomeKit Bridges
####################################################
homekit:
- name: HASS ID.5
port: 21210
filter:
include_entities:
# Fahrzeug
- lock.***_door_locked
- lock.***_trunk_locked
- climate.***_electric_climatisation
- switch.***_window_heater
# Batterie‑Sensoren
- sensor.id5_battery_for_homekit
- sensor.id5_battery_cruising_range
Has anyone already done this, or can you give me some advice on what else I could do?