Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities listed in card config not displayed; only 15 out of 21 shown #711

Open
JoeKae opened this issue Mar 8, 2024 · 6 comments
Open
Labels
bug Something isn't working

Comments

@JoeKae
Copy link

JoeKae commented Mar 8, 2024

Describe the bug

Some of the entities that are listed in the card config are not shown in the card. There are 21 entities added and only 15 are shown. To limit the size of this issue I reduced the config to the 6 missing entities. When I first created the config a few months ago it all worked fine. It must have been broken since an update of the card or of HA but I did not notice it until now.

The entities are also missing if I use the default card config.

Also, there is nothing in the console log.

Maybe it is not important, but the manufacturers of the missing devices are Motion Blinds and Shelly. There are Shelly devices that show up though.

How to reproduce

To enable you to reproduce, I added all the 6 entities below (see "Entity debug data").

Expected behavior

The expected behavior is that all of the listed entities in the config are shown in the card. If any error occurs, there should be a console log.

YAML configuration

type: custom:battery-state-card
title: Battery levels
debug: true
secondary_info: '{last_changed}'
color_gradient:
  - '#ff0000'
  - '#ffff00'
  - '#00ff00'
sort:
  by: state
collapse:
  - name: 'Thermostate (min: {min}%, count: {count})'
    secondary_info: Battery levels {range}%
    entities:
      - sensor.heizkorper_battery
  - name: 'Rollos (min: {min}%, count: {count})'
    secondary_info: Battery levels {range}%
    entities:
      - sensor.rollerblind_0001_battery
      - sensor.rollerblind_0002_battery
      - sensor.rollerblind_0003_battery
  - name: 'Sensoren (min: {min}%, count: {count})'
    secondary_info: Battery levels {range}%
    entities:
      - sensor.shellydw2_078ccb_battery
      - sensor.fenster_sud_kinderzimmer_battery

entities:
  - entity: sensor.rollerblind_0001_battery
    name: Schlafzimmer Ostfenster
  - entity: sensor.rollerblind_0002_battery
    name: Kinderzimmer Ostfenster
  - entity: sensor.rollerblind_0003_battery
    name: Kinderzimmer Südfenster
  - entity: sensor.heizkorper_battery
    name: Heizkörper Bad
  - entity: sensor.shellydw2_078ccb_battery
    name: Fenstersensor Kinderzimmer Ost
  - entity: sensor.fenster_sud_kinderzimmer_battery
    name: Fenstersensor Kinderzimmer Süd

Entity debug data

As the entities are not shown at all, there is also no debug output. So I added the info from the HA Dev States.

entity_id: sensor.rollerblind_0001_battery
    state: 88.0
    state_class: measurement
    battery_voltage: 12.09
    unit_of_measurement: %
    device_class: battery
    friendly_name: Ostfenster battery

entity_id: sensor.rollerblind_0002_battery
    state: 80.0
    state_class: measurement
    battery_voltage: 11.92
    unit_of_measurement: %
    device_class: battery
    friendly_name: Ostfenster battery

entity_id: sensor.rollerblind_0003_battery
    state: 77.0	
    state_class: measurement
    battery_voltage: 11.86
    unit_of_measurement: %
    device_class: battery
    friendly_name: Südfenster battery

entity_id: sensor.heizkorper_battery
    state: 99	
    state_class: measurement
    unit_of_measurement: %
    device_class: battery
    friendly_name: Heizkörper battery

entity_id: sensor.shellydw2_078ccb_battery
    state: 80	
    state_class: measurement
    unit_of_measurement: %
    device_class: battery
    friendly_name: shellydw2-078CCB battery

entity_id: sensor.fenster_sud_kinderzimmer_battery
    state: 100
    state_class: measurement
    unit_of_measurement: %
    device_class: battery
    friendly_name: Fenster Süd Kinderzimmer battery

Dev console errors

Nothing.

Screenshots

Screenshots will be added if the need arises.

Version

battery_state_card: 3.2.1
home_assistant:
    - core: 2024.3.0
    - supervisor: 2024.02.1
    - operating_system: 12.0
    - frontend: 20240306.0
@JoeKae JoeKae added the bug Something isn't working label Mar 8, 2024
@maxwroc
Copy link
Owner

maxwroc commented Mar 11, 2024

Can you please simplify your config, for example add just one entity which is missing and see what happens:

type: custom:battery-state-card
debug: true
entities:
  - entity: sensor.rollerblind_0001_battery

@JoeKae
Copy link
Author

JoeKae commented Mar 11, 2024

@maxwroc
Thank you for your prompt response. I appreciate your suggestion. I've tried simplifying the configuration by including just one entity that was missing. Unfortunately, the behavior remains unchanged, mirroring what I observed with the configuration I provided earlier.

@maxwroc
Copy link
Owner

maxwroc commented Mar 11, 2024

What exactly happened? Was the card not rendered at all???

@JoeKae
Copy link
Author

JoeKae commented Mar 11, 2024

Indeed, the card appeared empty and failed to render any content whatsoever.

@maxwroc
Copy link
Owner

maxwroc commented Mar 11, 2024

Can you please check if there are any errors/warnings in browser console (F12 if you are on PC).

Entity data looks ok, so far I don't have a clue why it's not rendering... but lack of the debug output can suggest that you might be on some kind of old card version (please check the version logged in browser console). With the debug: true not a single entity should be rendered - just a debug output for everything

@JoeKae
Copy link
Author

JoeKae commented Mar 12, 2024

This is all i get:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants