Stack-In-Card: Drop-in replacement for vertical-stack-in-card

Indentation has nothing to do with being a developper. Looking for some yaml tutorials online will help you (eg: https://learnxinyminutes.com/docs/yaml/)

Try this:

type: 'custom:stack-in-card'
title: My Stack In Card
mode: vertical
cards:
  - heading:
    - 'mdi:alarm-light'
    - Huis status
    style: |
      ha-card {
          background: {% if is_state('switch.alarm_aangezet', 'on') %} #E45F65 {% endif %};
          background: {% if is_state('switch.alarm_aangezet', 'off') %} #3AA8F3 {% endif %};


      }  
    type: 'custom:banner-card'
  - type: 'custom:state-switch'
    entity: user
    default: default
    states:
      Danny Mertens:
        type: markdown
        content: |
          <font size="4"> {{ states('sensor.time_of_day') }}: Danny</font>
          <font size="2"> [Lampen aan](/lovelace-iphone/verlichting) {% set
              lights = [
                states.light.lamp_wasruimte, states.light.ledstrip_keuken, states.light.lage_lamp,
                states.light.hoge_lamp, states.light.ledstrip_zetel, states.light.lamp_1_douche,
                states.light.lamp_2_douche, states.light.lamp_1_dressing, states.light.lamp_2_dressing,
                states.light.lamp_3_dressing, states.light.lamp_venster_hal, states.light.lamp_toilet,
                states.light.lamp_1_nachthal, states.light.lamp_2_nachthal, states.light.lamp_3_nachthal,
                states.light.lamp_4_nachthal, states.light.lamp_badkamer, states.light.lamp_1_bureau,
                states.light.lamp_1_master_slaapkamer, states.light.lamp_2_master_slaapkamer, states.light.lamp_3_master_slaapkamer,
                states.light.lamp_4_master_slaapkamer, states.light.lamp_1_terras_beneden, states.light.lamp_2_terras_beneden,
                states.light.lamp_1_terras_boven, states.light.lamp_2_terras_boven, states.light.lamp_3_terras_boven,
                states.light.lamp_4_terras_boven, states.light.lamp_5_terras_boven, states.light.lamp_6_terras_boven,
                states.light.lamp_2_bureau, states.light.lamp_3_bureau, states.light.lamp_4_bureau,
                states.light.ledstrip_bureau, states.light.lamp_michael,
                ] %} {{ lights | selectattr('state','eq','on') | list | count }} | [Deuren open](/lovelace-iphone/beveiliging) {% set Doors = [
                states.binary_sensor.achterdeur_contact_alarm,
                states.binary_sensor.voordeur_contact_alarm,
                states.binary_sensor.schuifdeur_contact_alarm,
                ] %} {{ Doors | selectattr('state','eq','on') | list | count }} | [Ramen open](/lovelace-iphone/beveiliging) {% set Windows = [
                states.binary_sensor.keukenraam_contact_alarm,
                states.binary_sensor.dubbel_raam_contact_alarm,
                states.binary_sensor.dressing_raam_contact_alarm,
                states.binary_sensor.nachthal_raam_sensor,
                states.binary_sensor.window_door_sensor,
                states.binary_sensor.badkamer_raam_sensor,
                states.binary_sensor.master_raam_sensor,
                states.binary_sensor.michael_raam_sensor,
                ] %} {{ Windows | selectattr('state','eq','on') | list | count }} </font>
      Martine Geysen:
        type: markdown
        content: |
          <font size="4">{{ states('sensor.time_of_day') }}: Martine</font>
          <font size="2"> [Lampen aan](/lovelace-iphone/verlichting) {% set
              lights = [
                states.light.lamp_wasruimte, states.light.ledstrip_keuken, states.light.lage_lamp,
                states.light.hoge_lamp, states.light.ledstrip_zetel, states.light.lamp_1_douche,
                states.light.lamp_2_douche, states.light.lamp_1_dressing, states.light.lamp_2_dressing,
                states.light.lamp_3_dressing, states.light.lamp_venster_hal, states.light.lamp_toilet,
                states.light.lamp_1_nachthal, states.light.lamp_2_nachthal, states.light.lamp_3_nachthal,
                states.light.lamp_4_nachthal, states.light.lamp_badkamer, states.light.lamp_1_bureau,
                states.light.lamp_1_master_slaapkamer, states.light.lamp_2_master_slaapkamer, states.light.lamp_3_master_slaapkamer,
                states.light.lamp_4_master_slaapkamer, states.light.lamp_1_terras_beneden, states.light.lamp_2_terras_beneden,
                states.light.lamp_1_terras_boven, states.light.lamp_2_terras_boven, states.light.lamp_3_terras_boven,
                states.light.lamp_4_terras_boven, states.light.lamp_5_terras_boven, states.light.lamp_6_terras_boven,
                states.light.lamp_2_bureau, states.light.lamp_3_bureau, states.light.lamp_4_bureau,
                states.light.ledstrip_bureau, states.light.lamp_michael,
                ] %} {{ lights | selectattr('state','eq','on') | list | count }} | [Deuren open](/lovelace-iphone/beveiliging) {% set Doors = [
                states.binary_sensor.achterdeur_contact_alarm,
                states.binary_sensor.voordeur_contact_alarm,
                states.binary_sensor.schuifdeur_contact_alarm,
                ] %} {{ Doors | selectattr('state','eq','on') | list | count }} | [Ramen open](/lovelace-iphone/beveiliging) {% set Windows = [
                states.binary_sensor.keukenraam_contact_alarm,
                states.binary_sensor.dubbel_raam_contact_alarm,
                states.binary_sensor.dressing_raam_contact_alarm,
                states.binary_sensor.nachthal_raam_sensor,
                states.binary_sensor.window_door_sensor,
                states.binary_sensor.badkamer_raam_sensor,
                states.binary_sensor.master_raam_sensor,
                states.binary_sensor.michael_raam_sensor,
                ] %} {{ Windows | selectattr('state','eq','on') | list | count }} </font>
      default:
        type: markdown
        content: |
          {{ states('sensor.time_of_day') }}: gast

  - dateColor: white
    name: false
    dateSize: 70
    dayWrapperLineColor: white
    descSize: 70
    dimFinishedEvents: true
    entities:
      - entity: calendar.martine
      - entity: calendar.michael
      - entity: calendar.danny
      - entity: calendar.mertens_geysen
    eventBarColor: white
    finishedEventFilter: grayscale(100%)
    finishedEventOpacity: 0.6
    fullDayEventText: Dag afspraak
    hoursFormat: 24
    language: nl
    sortByStartTime: true
    locationIconColor: 'rgb(230, 124, 115)'
    locationLinkColor: white
    locationTextSize: 80
    maxDaysToShow: 0
    maxEventCount: 0
    noEventsForTodayText: Geen afspraken vandaag
    progressBarColor: white
    showColors: true
    showCurrentEventLine: false
    showDescription: true
    showLoader: true
    showLocation: true
    showMonth: false
    showNoEventsForToday: true
    showProgressBar: true
    timeColor: white
    timeSize: 80
    titleColor: white
    titleSize: 90
    type: 'custom:atomic-calendar-revive'
    untilText: Tot
    showDate: false
    disableEventLink: true

This is expected because stack-in-card is a card, so it has a box-shadow :slight_smile: wherever itā€™s positioned.
If you want to remove stack-in-cardā€™s box-shadow on itself, youā€™ll have to use card-mod

Hi,

Thanks! Iā€™m sure going to look at your link!!!
It works more or less now, everything is nicely in one card view but the style in the header does not work anymore, the idea is that this is blue when alarm is off, red when alarm is on.

image
image

Your template is wrong, thatā€™s why it doesnā€™t work (and stack-in-card removes the background by default)

    style: |
      ha-card {
          background:
          {% if is_state('switch.alarm_aangezet', 'on') %}
            #E45F65
          {% else %}
            #3AA8F3
          {% endif %}
          ;
          --keep-background: true;
      }  
1 Like

What did you use to get the info about the printer?
I saw the custom component to get the cartdriges status but what about the rest?

Thanks

Since HP Printer component does not work me (it requires some specific .xml file to be exposed by printer) I created set of SNMP sensor specific to my printer (well, perhaps to more than CP1515n, since these should be somehow standard across HP lineup). Whole setup is documented here:

Obviously, the cards itself changes since then :slight_smile:

Oh, got itā€¦ previously I was using one more level of nesting within vertical-stack-in-card and this was causing all borders, but stack to dissapearā€¦

Hmmmā€¦ does not workā€¦ I included everyting inside another stack-in-card and set parameters to remove borders, but it is still there:

type: 'custom:stack-in-card'
mode: vertical
keep:
  background: false
  border_radius: false
  box_shadow: false
  margin: false
  outer_padding: false
cards:
  - entities:
      - type: divider
      - entity: sensor.cp1515n_printer_status
        icon: 'mdi:information-variant'
        name: 'Printer status:'
      - entity: sensor.cp1515n_printer_error
        icon: 'mdi:alert-outline'
        name: 'Printer error:'
      - entity: sensor.cp1515n_printer_uptime
        icon: 'mdi:clock-check-outline'
        name: 'Printer uptime:'
      - type: divider
      - entity: sensor.cp1515n_total_pages_printed
        icon: 'mdi:counter'
        name: 'Total pages printed:'
      - entity: sensor.cp1515n_color_pages_printed
        icon: 'mdi:counter'
        name: 'Color pages printed:'
      - entity: sensor.cp1515n_bw_pages_printed
        icon: 'mdi:counter'
        name: 'B&W pages printed:'
      - type: divider
      - cards:
          - align: center
            animation: auto
            animiation: 'on'
            attribute: false
            background_style: false
            card_style: false
            charge_entity: false
            color: '#222222'
            decimal: false
            delay: 5000
            direction: up
            entities:
              - entity: sensor.cp1515n_black_level
            entity: sensor.cp1515n_black_level
            height: 150px
            icon: false
            icon_position: 'off'
            icon_style: false
            indicator: auto
            limit_value: false
            max: 100
            min: 0
            minmax_style: false
            padding: 4px
            rounding: 3px
            saturation: 100%
            severity: false
            show_minmax: false
            show_value: true
            speed: 1000
            tap_action: info
            target: 10
            title: Black
            title_position: bottom
            title_style: false
            type: 'custom:bar-card'
            unit_of_measurement: false
            value_style: false
            visibility: false
            width: 75%
          - align: center
            animation: auto
            animiation: 'on'
            attribute: false
            background_style: false
            card_style: false
            charge_entity: false
            color: '#00ffff'
            decimal: false
            delay: 5000
            direction: up
            entities:
              - entity: sensor.cp1515n_cyan_level
            entity: sensor.cp1515n_cyan_level
            height: 150px
            icon: false
            icon_position: 'off'
            icon_style: false
            indicator: auto
            limit_value: false
            max: 100
            min: 0
            minmax_style: false
            padding: 4px
            rounding: 3px
            saturation: 100%
            severity: false
            show_minmax: false
            show_value: true
            speed: 1000
            tap_action: info
            target: 10
            title: Cyan
            title_position: bottom
            title_style: false
            type: 'custom:bar-card'
            unit_of_measurement: false
            value_style: false
            visibility: false
            width: 75%
          - align: center
            animation: auto
            animiation: 'on'
            attribute: false
            background_style: false
            card_style: false
            charge_entity: false
            color: '#ff00ff'
            decimal: false
            delay: 5000
            direction: up
            entities:
              - entity: sensor.cp1515n_magenta_level
            entity: sensor.cp1515n_magenta_level
            height: 150px
            icon: false
            icon_position: 'off'
            icon_style: false
            indicator: auto
            limit_value: false
            max: 100
            min: 0
            minmax_style: false
            padding: 4px
            rounding: 3px
            saturation: 100%
            severity: false
            show_minmax: false
            show_value: true
            speed: 1000
            tap_action: info
            target: 10
            title: Magenta
            title_position: bottom
            title_style: false
            type: 'custom:bar-card'
            unit_of_measurement: false
            value_style: false
            visibility: false
            width: 75%
          - align: center
            animation: auto
            animiation: 'on'
            attribute: false
            background_style: false
            card_style: false
            charge_entity: false
            color: '#ffff00'
            decimal: false
            delay: 5000
            direction: up
            entities:
              - entity: sensor.cp1515n_yellow_level
            entity: sensor.cp1515n_yellow_level
            height: 150px
            icon: false
            icon_position: 'off'
            icon_style: false
            indicator: auto
            limit_value: false
            max: 100
            min: 0
            minmax_style: false
            padding: 4px
            rounding: 3px
            saturation: 100%
            severity: false
            show_minmax: false
            show_value: true
            speed: 1000
            tap_action: info
            target: 10
            title: Yellow
            title_position: bottom
            title_style: false
            type: 'custom:bar-card'
            unit_of_measurement: false
            value_style: false
            visibility: false
            width: 75%
        keep:
          background: false
          border_radius: false
          box_shadow: false
          margin: false
          outer_padding: false
        mode: horizontal
        title: 'Toner levels:'
        type: 'custom:stack-in-card'
    title: HP Color LaserJet CP1515n
    type: entities

So it works slightly different that vertical-stack-in-card, that was removing borders to all children, regardless level of nesting. Here it seems not be able to remove border its own instance nested withinā€¦ or again Iā€™m doing something wrong :slight_smile:

Iā€™m trying really do, but pff this is not so easy to understand as a novice and non developer, what Iā€™m doing wrong here?

image

type: 'custom:stack-in-card'
mode: vertical
cards:
  - type: markdown
    content: |
      <font size="2"> [Lampen aan](/lovelace-iphone/verlichting) {% set
          lights = [
            states.light.lamp_wasruimte, states.light.ledstrip_keuken, states.light.lage_lamp,
            states.light.hoge_lamp, states.light.ledstrip_zetel, states.light.lamp_1_douche,
            states.light.lamp_2_douche, states.light.lamp_1_dressing, states.light.lamp_2_dressing,
            states.light.lamp_3_dressing, states.light.lamp_venster_hal, states.light.lamp_toilet,
            states.light.lamp_1_nachthal, states.light.lamp_2_nachthal, states.light.lamp_3_nachthal,
            states.light.lamp_4_nachthal, states.light.lamp_badkamer, states.light.lamp_1_bureau,
            states.light.lamp_1_master_slaapkamer, states.light.lamp_2_master_slaapkamer, states.light.lamp_3_master_slaapkamer,
            states.light.lamp_4_master_slaapkamer, states.light.lamp_1_terras_beneden, states.light.lamp_2_terras_beneden,
            states.light.lamp_1_terras_boven, states.light.lamp_2_terras_boven, states.light.lamp_3_terras_boven,
            states.light.lamp_4_terras_boven, states.light.lamp_5_terras_boven, states.light.lamp_6_terras_boven,
            states.light.lamp_2_bureau, states.light.lamp_3_bureau, states.light.lamp_4_bureau,
            states.light.ledstrip_bureau, states.light.lamp_michael,
            ] %} {{ lights | selectattr('state','eq','on') | list | count }}
    card:
      content: |
        Deze lampen zijn aan:
        {% for l in config.entities %}
          - {{ l.entity }}
        {%- endfor %}
  - type: markdown
    entities:
      - entity: light.lamp_1_bureau
      - entity: light.lamp_2_bureau
      - entity: light.lamp_3_bureau
      - entity: light.lamp_wasruimte
      - entity: light.ledstrip_keuken
      - entity: light.lage_lamp
      - entity: light.hoge_lamp
      - entity: light.ledstrip_zetel
      - entity: light.lamp_1_douche
      - entity: light.lamp_2_douche
      - entity: light.lamp_1_dressing
      - entity: light.lamp_2_dressing
      - entity: light.lamp_3_dressing
      - entity: light.lamp_venster_hal
      - entity: light.lamp_toilet
      - entity: light.lamp_1_nachthal
      - entity: light.lamp_2_nachthal
      - entity: light.lamp_3_nachthal
      - entity: light.lamp_4_nachthal
      - entity: light.lamp_badkamer
      - entity: light.lamp_1_bureau
      - entity: light.lamp_1_master_slaapkamer
      - entity: light.lamp_2_master_slaapkamer
      - entity: light.lamp_3_master_slaapkamer
      - entity: light.lamp_4_master_slaapkamer
      - entity: light.lamp_1_terras_beneden
      - entity: light.lamp_2_terras_beneden
      - entity: light.lamp_1_terras_boven
      - entity: light.lamp_2_terras_boven
      - entity: light.lamp_3_terras_boven
      - entity: light.lamp_4_terras_boven
      - entity: light.lamp_5_terras_boven
      - entity: light.lamp_6_terras_boven
      - entity: light.lamp_2_bureau
      - entity: light.lamp_3_bureau
      - entity: light.lamp_4_bureau
      - entity: light.ledstrip_bureau
      - entity: light.lamp_michael
    state_filter:
      - 'on'

well, you need to learn something. it shows you the problem and some info about your card:

  • content required for a card with - entity: light.lamp_1_bureau etc.

look at it - itā€™s a markdown card, but you donā€™t use content, you use entities instead.
you need something like you do in your first card.
and what that state_filter: is doing at the end? it is not allowed in markdown cards.

Euh Ok, but it really works in a seperate card :anguished:

image

separate. well, 2 things: a) I can see a wrong config and LL says you what exactly is wrong (and it is wrong, itā€™s not markdown cardā€™s config) and b) I can see not config of your separate card so cannot comment, itā€™s irrelevant here.

Hi, I understand and thanks will have a look at it, new to all of this, so sometimes just happy if somethings work :wink: but I understand that itā€™s not right and will check it out, thanks!

this is the card that I use now

card:
  content: |
    Deze lampen zijn aan:
    {% for l in config.entities %}
      - {{ state_attr(l.entity, 'friendly_name') }}
    {%- endfor %}
  type: markdown
entities:
  - entity: light.lamp_1_bureau
  - entity: light.lamp_2_bureau
  - entity: light.lamp_3_bureau
  - entity: light.lamp_wasruimte
  - entity: light.ledstrip_keuken
  - entity: light.lage_lamp
  - entity: light.hoge_lamp
  - entity: light.ledstrip_zetel
  - entity: light.lamp_1_douche
  - entity: light.lamp_2_douche
  - entity: light.lamp_1_dressing
  - entity: light.lamp_2_dressing
  - entity: light.lamp_3_dressing
  - entity: light.lamp_venster_hal
  - entity: light.lamp_toilet
  - entity: light.lamp_1_nachthal
  - entity: light.lamp_2_nachthal
  - entity: light.lamp_3_nachthal
  - entity: light.lamp_4_nachthal
  - entity: light.lamp_badkamer
  - entity: light.lamp_1_bureau
  - entity: light.lamp_1_master_slaapkamer
  - entity: light.lamp_2_master_slaapkamer
  - entity: light.lamp_3_master_slaapkamer
  - entity: light.lamp_4_master_slaapkamer
  - entity: light.lamp_1_terras_beneden
  - entity: light.lamp_2_terras_beneden
  - entity: light.lamp_1_terras_boven
  - entity: light.lamp_2_terras_boven
  - entity: light.lamp_3_terras_boven
  - entity: light.lamp_4_terras_boven
  - entity: light.lamp_5_terras_boven
  - entity: light.lamp_6_terras_boven
  - entity: light.lamp_2_bureau
  - entity: light.lamp_3_bureau
  - entity: light.lamp_4_bureau
  - entity: light.ledstrip_bureau
  - entity: light.lamp_michael
state_filter:
  - 'on'
type: entity-filter

image

I understand.
itā€™s a conditional card that displays a markdown card, looks good.
coming back to your original issue - it would be great if you could describe your goal/problem clearly when asking because your code is messed up and I can only guessā€¦
Something like this?

type: 'custom:stack-in-card'
mode: vertical
cards:
  - type: markdown
    content: |
      <font size="2"> [Lampen aan](/lovelace-iphone/verlichting) {% set
          lights = [
            states.light.lamp_wasruimte, states.light.ledstrip_keuken, states.light.lage_lamp,
            states.light.hoge_lamp, states.light.ledstrip_zetel, states.light.lamp_1_douche,
            states.light.lamp_2_douche, states.light.lamp_1_dressing, states.light.lamp_2_dressing,
            states.light.lamp_3_dressing, states.light.lamp_venster_hal, states.light.lamp_toilet,
            states.light.lamp_1_nachthal, states.light.lamp_2_nachthal, states.light.lamp_3_nachthal,
            states.light.lamp_4_nachthal, states.light.lamp_badkamer, states.light.lamp_1_bureau,
            states.light.lamp_1_master_slaapkamer, states.light.lamp_2_master_slaapkamer, states.light.lamp_3_master_slaapkamer,
            states.light.lamp_4_master_slaapkamer, states.light.lamp_1_terras_beneden, states.light.lamp_2_terras_beneden,
            states.light.lamp_1_terras_boven, states.light.lamp_2_terras_boven, states.light.lamp_3_terras_boven,
            states.light.lamp_4_terras_boven, states.light.lamp_5_terras_boven, states.light.lamp_6_terras_boven,
            states.light.lamp_2_bureau, states.light.lamp_3_bureau, states.light.lamp_4_bureau,
            states.light.ledstrip_bureau, states.light.lamp_michael,
            ] %} {{ lights | selectattr('state','eq','on') | list | count }}
    card:
      content: |
        Deze lampen zijn aan:
        {% for l in config.entities %}
          - {{ l.entity }}
        {%- endfor %}
  - type: entity-filter
    card:
      content: |
        Deze lampen zijn aan:
        {% for l in config.entities %}
          - {{ state_attr(l.entity, 'friendly_name') }}
        {%- endfor %}
      type: markdown
    entities:
      - entity: light.lamp_1_bureau
      - entity: light.lamp_2_bureau
      - entity: light.lamp_3_bureau
      - entity: light.lamp_wasruimte
      - entity: light.ledstrip_keuken
      - entity: light.lage_lamp
      - entity: light.hoge_lamp
      - entity: light.ledstrip_zetel
      - entity: light.lamp_1_douche
      - entity: light.lamp_2_douche
      - entity: light.lamp_1_dressing
      - entity: light.lamp_2_dressing
      - entity: light.lamp_3_dressing
      - entity: light.lamp_venster_hal
      - entity: light.lamp_toilet
      - entity: light.lamp_1_nachthal
      - entity: light.lamp_2_nachthal
      - entity: light.lamp_3_nachthal
      - entity: light.lamp_4_nachthal
      - entity: light.lamp_badkamer
      - entity: light.lamp_1_bureau
      - entity: light.lamp_1_master_slaapkamer
      - entity: light.lamp_2_master_slaapkamer
      - entity: light.lamp_3_master_slaapkamer
      - entity: light.lamp_4_master_slaapkamer
      - entity: light.lamp_1_terras_beneden
      - entity: light.lamp_2_terras_beneden
      - entity: light.lamp_1_terras_boven
      - entity: light.lamp_2_terras_boven
      - entity: light.lamp_3_terras_boven
      - entity: light.lamp_4_terras_boven
      - entity: light.lamp_5_terras_boven
      - entity: light.lamp_6_terras_boven
      - entity: light.lamp_2_bureau
      - entity: light.lamp_3_bureau
      - entity: light.lamp_4_bureau
      - entity: light.ledstrip_bureau
      - entity: light.lamp_michael
    state_filter:
      - 'on'

Hi, wel to be honest you already fixed it, just tried your version and works fine, thanks!

1 Like

Iā€™ll work on that for the next release :slight_smile:

I think I found what I was doing wrong!
My bar charts with toner levels were part of entities card, that then was embedded within stack-in card. So it was entities card that was preserving border, not the stack-in-card! After moving bar-card outside of entities card, directly to stack-in-card, unwanted borders dissapeared!
This is causing another small issue, with spacing (space between entities card and bar card gets enlarged, not looking as I would wish :slight_smile: Perhaps this is something to look at (though not sure if possible, this might be result of individual cards borders accumulating - space between divider and title of bar-card on screenshot below)?

1 Like

I think you can inspect whatā€™s inside your card and what causes that gap to be bigger than you expected.
As a viable option you can always tweak your resulting gard with card-mod (at least it will be quicker than to wait for a new release :wink: )

@AhmadK Thanks! Here is the latest code I use for this card:

type: 'custom:stack-in-card'
mode: vertical
keep:
  background: false
  border_radius: false
  box_shadow: false
  margin: false
  outer_padding: false
cards:
  - type: entities
    entities:
      - type: divider
      - entity: sensor.cp1515n_printer_status
        icon: 'mdi:information-variant'
        name: 'Printer status:'
      - entity: sensor.cp1515n_printer_error
        icon: 'mdi:alert-outline'
        name: 'Printer error:'
      - entity: sensor.cp1515n_printer_uptime
        icon: 'mdi:clock-check-outline'
        name: 'Printer uptime:'
      - type: divider
      - entity: sensor.cp1515n_total_pages_printed
        icon: 'mdi:counter'
        name: 'Total pages printed:'
      - entity: sensor.cp1515n_color_pages_printed
        icon: 'mdi:counter'
        name: 'Color pages printed:'
      - entity: sensor.cp1515n_bw_pages_printed
        icon: 'mdi:counter'
        name: 'B&W pages printed:'
      - type: divider
  - type: 'custom:bar-card'
    entities:
      - entity: sensor.cp1515n_black_level
        color: '#333333'
        name: Black
      - entity: sensor.cp1515n_cyan_level
        entity_config: null
        name: Cyan
        color: '#00FFFF'
      - entity: sensor.cp1515n_magenta_level
        entity_config: null
        name: Magenta
        color: '#FF00FF'
      - entity: sensor.cp1515n_yellow_level
        entity_config: null
        name: Yellow
        color: '#FFFf00'
    animation:
      speed: 1000
      delay: 1000
      state: 'on'
    direction: up
    entity_row: false
    height: 120px
    width: 70%
    limit_value: true
    min: 0
    max: 100
    title: 'Toner levels:'
    stack: horizontal
    target: 15
    positions:
      icon: 'off'
      indicator: 'off'
      title: outside
      minmax: 'off'
      value: inside
title: HP Color LaserJet CP1515n

Regarding card-modā€¦ well, I hate somehow CSS and modding, adding aditional components to my HA only if absolutely necessary :smiley: so Iā€™m trying to avoid this type of modifications as long as possible :smiley: Maybe itā€™s time to change my mind :wink:

1 Like

I am sorry to hear it wasnā€™t working for you, I do have a CP1525nw and it was working perfectly but now that I went to check it it seems not to be working again, so Iā€™ll have to take a look into that too :smiley:

Thanks

1 Like