Für alle die einen Drucker besitzen, der seine Sensordaten übermittelt und in Home Assistant integrierbar ist, hat MrThiemann auf unserem Discord eine schöne Lösung geteilt, mit der sich die Tintenfüllstände im Lovelace Dashboard übersichtlich darstellen lassen.
Die Lösung basiert auf der Button-Card aus dem Home Assistant Community Store (HACS).
Wie Ihr HACS installiert könnt Ihr auf der Hacs Homepage unter https://hacs.xyz im Download Bereich Schritt für Schritt nachlesen.
Im HACS könnt Ihr dann unter dem Punkt Frontend die Button-Card installieren.
Nun könnt Ihr den neuen Kartentyp im Lovelace verwenden.
Lovelace Card
1type: custom:button-card
2entity: sensor.epson_wf_3540_series
3name: HL-L3230
4color: gray
5show_state: true
6styles:
7 card:
8 - padding: 0 0 5px 0
9 icon:
10 - width: 100%
11 state:
12 - text-align: left
13 - width: 100%
14 grid:
15 - grid-template-areas: '"i c m y k" "n s s s s"'
16 - grid-template-columns: 1fr 1fr 1fr 1fr 1fr
17 - grid-template-rows: auto 1em
18 custom_fields:
19 k:
20 - width: 80%
21 - margin: auto
22 c:
23 - width: 80%
24 - margin: auto
25 m:
26 - width: 80%
27 - margin: auto
28 'y':
29 - width: 80%
30 - margin: auto
31custom_fields:
32 k:
33 card:
34 type: custom:button-card
35 template: inkwell
36 entity: sensor.hl_l3230cdw_black_toner_remaining
37 variables:
38 color: black
39 c:
40 card:
41 type: custom:button-card
42 template: inkwell
43 entity: sensor.hl_l3230cdw_cyan_toner_remaining
44 variables:
45 color: cyan
46 m:
47 card:
48 type: custom:button-card
49 template: inkwell
50 entity: sensor.hl_l3230cdw_magenta_toner_remaining
51 variables:
52 color: magenta
53 'y':
54 card:
55 type: custom:button-card
56 template: inkwell
57 entity: sensor.hl_l3230cdw_yellow_toner_remaining
58 variables:
59 color: yellow


