Für einen Volvo habe ich eine Lovelace-Card hier  gefunden, welche ich hier beschreiben möchte.

Los gehts natürlich mit der Volvo OnCall Integration . Das sieht etwa so aus:

1
2
3
volvooncall:
  username: !secret volvo_oncall_username
  password: !secret volvo_oncall_password

Tipp: Wenn du den Account auf deinem Smartphone noch in der App nutzen willst, solltest du einen weiteren Nutzer anlegen, welcher nur von Homeassistant genutzt wird. Ansonsten musst du dich häufiger anmelden, was etwas nervig ist.

Dann lade ein Bild deines Autos herunter (am besten mit transparentem Hintergrund so wie dieses). Dann kopiere dieses in den ordner config/www/cards/ als volvo.png.

Dann konfiguriere den GoogleGeocode via HACS :

1
2
3
4
5
6
- platform: google_geocode
  name: Volvo Geocode
  origin: device_tracker.volvo
  language: de-DE
  region: DE
  api_key: !secret google_maps_api_key

Nun gehts endlich an die Karte - hier das yaml dazu:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
type: picture-elements
image: /local/cards/volvo.png
elements:
  - type: state-label
    entity: sensor.volvo_range
    prefix: 'Reichweite: '
    style:
    top: 5%
    right: 110px
    transform: none
  - type: state-label
    entity: sensor.volvo_fuel_level
    prefix: (
    suffix: ' im Tank)'
    style:
    top: 5%
    right: 5px
    transform: none
  - type: state-label
    entity: sensor.volvo_trip_meter_2
    prefix: 'Last Trip: '
    style:
    top: 25%
    right: 5px
    transform: none
  - type: state-label
    entity: sensor.volvo_odometer
    prefix: 'Gesamt: '
    style:
    top: 15%
    right: 5px
    transform: none
  - type: state-label
    entity: sensor.volvo_geocode
    style:
    top: 75%
    right: 5px
    transform: none
  - type: state-icon
    entity: lock.volvo_door_lock
    style:
    top: 82%
    left: 8%
  - type: state-icon
    entity: switch.volvo_heater
    style:
    top: 82%
    left: 16%
  - type: state-icon
    entity: binary_sensor.volvo_engine
    style:
    top: 82%
    left: 24%
  - type: state-icon
    entity: binary_sensor.volvo_doors
    style:
    top: 82%
    left: 32%
  - type: state-icon
    entity: binary_sensor.volvo_windows
    style:
    top: 82%
    left: 40%