Same here, can also see only 2 Entries. In the Audi app all infos are available. Need the the recent km on the clock!
Solved today by arjenvrh. Different backend urls needed to be added in order to access data for newer cars.
Works like a charm now! Thanks a lot!
Guys, as this is solved now and I see all entities fun starts with creating automations. Woohhooo.
I must admit I have no clear picture how to call the services from this integration. I cant find any examples in the documentation. Can anyone point me into the right direction?
service: audiconnect.execute_vehicle_action
data:
vin: wau...
action: unlock
This was not working yet.
Thanks!!
got this working (did “DE” after deleting the first attempt)
looks great
also, i found that when calling a service, if i put a single quote into the call, it all works fine.
can unlock and lcok with the following:
service: audiconnect.execute_vehicle_action
data:
vin: 'xxx'
action: 'lock'
service: audiconnect.execute_vehicle_action
data:
vin: 'xxx'
action: 'unlock'
hey.
is there a way to find out which “actions” can apply to your car and spec somehow?
Just tested this and it didnt work for me with my US Spec B9 S4.
tweaked things a little to add unlock/lock/refesh to the image as well
type: picture-elements
image: /local/audisq5.png
style: |
ha-card {
border-radius: 10px;
border: solid 1px rgba(100,100,100,0.3);
box-shadow: 3px 3px rgba(0,0,0,0.4);
overflow: hidden;
}
elements:
- type: icon
entity: lock.audi_sq5_door_lock_2
icon: 'mdi:lock'
title: Lock Audi
tap_action:
action: call-service
service: script.audi_service_lock
confirmation:
text: Are you sure you want to LOCK the Audi?
style:
color: black
left: 40%
top: 5%
- type: icon
title: Lock Audi
entity: lock.audi_sq5_door_lock_2
icon: 'mdi:lock-open'
tap_action:
action: call-service
service: script.audi_service_unlock
confirmation:
text: Are you sure you want to UNLOCK the Audi?
style:
color: red
left: 50%
top: 5%
- type: icon
title: Refresh Audi Data
entity: sensor.audi_sq5_last_update
icon: 'mdi:refresh'
tap_action:
action: call-service
service: script.audi_service_update
style:
color: Blue
left: 60%
top: 5%
- type: image
image: /local/cardbackg.png
style:
left: 50%
top: 90%
width: 100%
height: 60px
- type: icon
icon: 'mdi:car-door'
entity: sensor.audi_sq5_doors_trunk_state
tap_action: more_info
style:
color: white
left: 10%
top: 86%
- type: state-label
entity: sensor.audi_sq5_doors_trunk_state
style:
color: white
left: 10%
top: 95%
- type: state-icon
entity: binary_sensor.audi_sq5_windows
tap_action: more_info
style:
color: white
left: 30%
top: 86%
- type: state-label
entity: binary_sensor.audi_sq5_windows
style:
color: white
left: 30%
top: 95%
- type: icon
icon: 'mdi:oil'
entity: sensor.audi_sq5_oil_level
tap_action: more_info
style:
color: white
left: 50%
top: 86%
- type: state-label
entity: sensor.audi_sq5_oil_level
style:
color: white
left: 50%
top: 95%
- type: icon
icon: 'mdi:room-service-outline'
entity: sensor.audi_sq5_service_inspection_time
tap_action: more_info
style:
color: white
left: 70%
top: 86%
- type: state-label
entity: sensor.audi_sq5_service_inspection_time
style:
color: white
left: 70%
top: 95%
- type: icon
icon: 'mdi:speedometer'
entity: sensor.audi_sq5_mileage
tap_action: more_info
style:
color: white
left: 90%
top: 86%
- type: state-label
entity: sensor.audi_sq5_mileage
style:
color: white
left: 90%
top: 95%
- type: 'custom:circle-sensor-card'
entity: sensor.audi_sq5_tank_level
max: 100
min: 0
stroke_width: 15
gradient: true
fill: '#aaaaaabb'
name: Petrol
units: ' '
font_style:
font-size: 1.0em
font-color: white
style:
top: 2%
left: 86%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.audi_sq5_range
max: 630
min: 0
stroke_width: 15
gradient: true
fill: '#aaaaaabb'
name: range
units: ' '
font_style:
font-size: 1.0em
font-color: white
style:
top: 2%
left: 2%
width: 4em
height: 4em
transform: none
scirpts:
##############################
##############################
######## Audi SQ5 ########
##############################
##############################
## https://github.com/arjenvrh/audi_connect_ha
audi_service_update:
sequence:
- service: audiconnect.refresh_data
data:
vin: !secret audisq5vin
audi_service_lock:
sequence:
- service: audiconnect.execute_vehicle_action
data:
vin: !secret audisq5vin
action: 'lock'
audi_service_unlock:
sequence:
- service: audiconnect.execute_vehicle_action
data:
vin: !secret audisq5vin
action: 'unlock'
this is the error I get Unable to lock vinremoved: object of type ‘NoneType’ has no len()
can you share the yaml
service: audiconnect.execute_vehicle_action
data:
vin: 'WAUC4_removed'
action: 'lock'
Have anyone figured out how throttling works?
I have extremely weird results in my tests.
Originally everything connected just fine - got ~20 entities on 2021 A6 (US).
However, upon calling any action, it attempts to issue another login and it responds with 403, which upon further debug appears to be “Too many connections”. When I uninstalled the app and disabled HA component, the tests started to return data properly, but the only action available (lock) was still returning forbidden.
And now, upon adding it back - 2 entities and that’s it.
try this script and see if that works?
audi_service_lock:
sequence:
- service: audiconnect.execute_vehicle_action
data:
vin: !secret audisq5vin
action: 'lock'
Just a heads up, audi services are down for maint, started on the 26th through the 29th. I was having issues and then went to go to their website and saw the popup. Not sure if it’s just the US or not.
So the maintenance window is over and my app is working on my phone but I’m getting invalid credentials using the integration now?
Bet something changed. Same here. Some more info:
2021-04-29 12:40:17 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Login to Audi service failed: 400, message='', url=URL('https://id.audi.com/v1/token')
Anyone else using this integration with an A3 e-tron? My tank level always reports 100%.
Not an answer to your question but this integration is working right now for you? Mines been unable to login since the last audi maintenance cycle the other day.
Yes, I just drove the car and it updated the range.