Skip to content

Battery Card

Visualization

Swiss Army Knife Functional Card Battery Sensor2 D06 Light
Swiss Army Knife Functional Card Battery Sensor2 D06 Dark

This card uses the Material 3 theme D06, TealBlue

This card is nothing more than a Sensor Card #2 with an adjusted colorstop!

Description Aspect Ratio Target Size
An example battery sensor level card with segmented arc and history 4/1 Grid with 2 columns

For a description, check the sensor card!

Usage

1.0.0-rc.3

Replace example entities with your entities!

 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
- type: 'custom:swiss-army-knife-card'
  entities:
    - entity: sensor.iphone_van_marco_battery_level
      name: 'Battery #2'
    - entity: sensor.iphone_van_marco_battery_level
      secondary_info: last_changed
      format: relative
  layout:
    template:
      name: sak_layout_fce_sensor2
      variables:
        - sak_layout_sensor_name_above_state: false
        - sak_layout_sensor_colorstops_template: colorstops_battery_level
        - sak_layout_sensor_icon_style: colorstops
        - sak_layout_sensor_segarc_style: colorstops
        - sak_layout_sensor_segarc_scale_max: 100                

########################################################################

- type: 'custom:swiss-army-knife-card'
  entities:
    - entity: sensor.ipad_van_marco_battery_level
      name: 'Battery #2'
    - entity: sensor.ipad_van_marco_battery_level
      secondary_info: last_changed
      format: relative
  layout:
    template:
      name: sak_layout_fce_sensor2
      variables:
        - sak_layout_sensor_name_above_state: false
        - sak_layout_sensor_colorstops_template: colorstops_battery_level
        - sak_layout_sensor_icon_style: colorstops
        - sak_layout_sensor_segarc_style: colorstops
        - sak_layout_sensor_segarc_scale_max: 100                

YAML Template Definition

1.0.0-rc.3 Check the sensor layout card!