Hi,
I have the Audi Connect Integration for Home Assistant up an running and getting the values from the car. So far so good!
Now I have tried to display them on a Dashboard, but obviously the values are not getting recognized properly so the icons are not changing once the values are changing. Using the picture element card:
type: picture-elements
elements:
- type: conditional
conditions:
- entity: binary_sensor.audi_q4_sportback_e_tron_plug_lock_state
attribute: Plug Status
state: Eingesteckt
- entity: binary_sensor.audi_q4_sportback_e_tron_plug_lock_state
attribute: Charge Type
state_not: AC_BASIC
elements:
- type: icon
icon: mdi:ev-plug-type2
tap_action: none
double_tap_action: none
hold_action: none
style:
top: 77%
left: 22%
color: green
- type: conditional
conditions:
- entity: binary_sensor.audi_q4_sportback_e_tron_plug_lock_state
attribute: Plug Status
state_not: Eingesteckt
elements:
- type: icon
icon: mdi:ev-plug-type2
tap_action: none
double_tap_action: none
hold_action: none
style:
top: 77%
left: 22%
color: red
- type: conditional
conditions:
- condition: state
entity: binary_sensor.audi_q4_sportback_e_tron_doors_lock
state: Abgeschlossen
elements:
- type: icon
icon: mdi:lock
tap_action: none
double_tap_action: none
hold_action:
action: call-service
service: script.unlock_q4
style:
top: 7%
left: 90.5%
color: black
- type: conditional
conditions:
- condition: state
entity: binary_sensor.audi_q4_sportback_e_tron_doors_lock
state_not: Abgeschlossen
elements:
- type: icon
icon: mdi:lock-open-variant
tap_action: none
double_tap_action: none
hold_action:
action: call-service
service: script.lock_q4
style:
top: 7%
left: 90.5%
color: "#039be5"
- type: state-label
entity: lock.audi_q4_sportback_e_tron_door_lock
style:
left: 45%
top: 50%
- type: state-label
entity: sensor.audi_q4_sportback_e_tron_mileage
style:
left: 21%
top: 90%
color: black
prefix: "Kilometerstand: "
image: /api/image/serve/ed32bc059b540d206def58761cc837b5/512x512
title: Audi Q4
The account is registered in Germany so values are partially received in German obviously.
As you can see on the screen shot door lock status as well as charge connector status are show wrong although the condition seems to be fulfilled.
Do you have any ideas?
br
F.