I’m glad to hear that you like it. Please give me some more details, like exact version of the card and HA, additionally paste your card config.
There was an issue with secondary info which was fixed in 1.6.2 (released yesterday). The problem was only with showing last-changed/updated time.
The exact reason of missing text was that translations have changed in recent HA releases and I had to switch to the new ones. So the fix for the new HA probably broke the older one (let me know if that is your case).
A couple of minutes ago I shut down my Home Assistant virtual machine in order to make a backup. Once finished, I restarted Home Assistant and now the secondary_info is shown again. What’s really weird is that a “normal” restart within Home Assistant did not fix the problem because I have tried that several times yesterday. However, a complete reboot seems like to have the problem fixed.
Congratulations on your great work! I’ve been using your card for several months already and I’m happy camper! I recently needed to switch the configuration of my RFXTRX hub and now I keep detecting rfxtrx devices constantly. Guess what? those new devices make a mess of my card and I frequently find things like this:
As per your documentation, I believe I can’t filter out these results
Note: Include filters should rely on static entity properties. E.g. you should not add include filter which checks the state property. Include filters are processed only once - when page is loaded (to minimize perf impact).
Any chance I could remove the Unavailable devices?
Yeah, same feature was suggested somewhere in this thread already. It’s not possible at the moment but I plan to add it in the nearest future. You can track it via this issue on github
Currently I’m rewriting the card and want to finish it before adding new features.
Yes it is possible and you can achieve it in two ways. You can list entities in the group individually or if you have the group defined in your HA config you can use instead.
If not please let me know and I will try to update it and add some more details.
type: 'custom:battery-state-card'
title: Battery state card
sort_by_level: asc
collapse:
- name: 'Door sensors'
icon: 'mdi:door'
entities: # explicit list of entities
- sensor.bedroom_balcony_battery_level
- sensor.main_door_battery_level
- sensor.living_room_balcony_battery_level
- name: 'Another group'
icon: 'mdi:light'
entities: # explicit list of entities
- sensor.sensor1
- sensor.sensor1
I think very useful option is to set the condition when the entity should be removed from the group and appear on the top of the list (ungroupped). Use min option - look in the doc.
This is how it looks on my dashboard (entities where battery level is below 75% are moved out of the groups):
I have an issue with icon color when using either color gradient or threshold. I am only getting green color or orange.
I have made a copy/paste of the custom color threshold and color_gradient examples but I only have green or orange.
type: custom:battery-state-card
title: "Custom color thresholds"
thresholds:
- value: 35 # applied to all values below/equal
color: "#8fffe1"
- value: 45 # applied to all values below/equal
color: "#8fbbff"
- value: 60 # applied to all values below/equal
color: "#978fff"
- value: 100 # applied to all values below/equal
color: "#fe8fff"
entities:
- sensor.multi_sensor_battery_level
- sensor.switch_mini_1_battery_level
- sensor.tradfri_on_off_switch_1_battery_level
- sensor.tradfri_on_off_switch_2_battery_level
- sensor.tradfri_on_off_switch_3_battery_level
- sensor.openclose_10_battery_level
battery state card ressource is loaded.
I have the iOs theme by @basnijholt installed, HA image running on an odroid C4.
system view from supervisor tab
It doesn’t work this way. I won’t be confirming here if everything, piece by piece, is properly documented You have found documentation bug which was there for a year, I think, and no one noticed it before. If you experience any issues with the examples given in the documentation just let me know and I will take a look. (but I hope everything will work fine). Good luck
Is the only way to include entities in the ‘collapse’ is to list them explicitly? I’ve tried all sorts of permutations for config and can’t get the wildcard search to work. Could just be me.
I was hoping to group battery levels by their levels except for 0-25%. So the end results would be similar to: