Iāve just installed the card and Iām having an issue with some real basic stuff.
Iām trying to filter some lights by the group that they are in, but nothing is showing.
If I remove the group filter all lights show as expected.
Hereās my card code:
Hello,
Iām using auto-entities to show the next birthdays, this limited so i only can see the next 3 birthdays.
Butā¦ i want to see the others to.
Is there like an option to add an dropdown or popup to it? so that u only can see the first 3 but when u press an arrow, u can see the rest of the list?
Thnx!
Is it possible to change the name of the entity āon the flyā?
In this example Iād like to remove ābatteryā from the name, as itās only batteries in this card so itād redundant.
So Iād like to see āAqara Aussenā only, instead of āAqara Aussen batteryā
Thanks for this awesome card, Iām using it to show āabnormalā states for my sensors (water, gas, smoke, etc) so that they only will show up if triggered. That works great.
Iām now trying to show my triggered camera images from Blue Iris, but only if it contains a valid camera image, e.g. the camera has triggered an alert in Blue Iris.
I have set up one MQTT camera entity in HA for each of my cameras, and those get the trigger screenshot from Blue Iris through MTTQ. This works just fine, each time a camera triggers an alert the corresponding MQTT camera gets the alert screenshot from Blue Iris.
But I would like to only show the camera image if it contains an actual image, if the corresponding Blue Iris camera has not been triggered the MQTT camera entity will not contain any picture/screenshot of the alert. But I can figure out how to use this card and make a filter that checks if the MQTT camera contains a valid image or not. Iām trying to use a picture-glance card for this, is this even possible?
This will of course show the camera image based on the āincludeā filter, or just a blank image if the camera contains no valid image. What I cannot figure out is how to make an āexcludeā filter that excludes the camera entity if it does not contain a valid image.
Responding to myself here, because after digging some more I found a rather simple solution to this.
I added the āavailability_topicā attribute to my MQTT cameras and made sure that Blu Iris sends the payload āonlineā as well as the image whenever it detects motion. My MQTT cameras will then have the state āunavailableā if no motion has been detected, this will change to āidleā as soon as it gets an image and āonlineā as its āavailability_topicā. The latter was the key to the solution. Now the āpicture-glanceā cards for each of my MQTT cameras will only show if any movement has been detected, in which case it shows the snapshot from the last alert. Not sure if this is the easiest way to achieve this, but it works.
This is not a case for auto-entities.
If you have only ONE camera entity and you need to show the card for this only entity_id conditionally - use a standard conditional card.
I have the exact same problem. It works without the options section included. It also only seems to not work for lights. I have another card that shows active motion sensors and it still works just fine.
The first part of the code is dynamic, so why not the speaker_group entities part?
Secondly, what I didnāt liked about it is that the āMasterā is also shown :
So what I wanted is just to show the other speakers :
So here is my version :
type: custom:auto-entities
show_empty: true
card:
type: entities
filter:
template: >-
{%- set speakers=expand(integration_entities("sonos"))|selectattr("domain","eq","media_player")|map(attribute="entity_id")|list %}
[ {% for speaker in expand(speakers) if speaker.attributes.group_members[0] == speaker.entity_id %}
{%- set speaker_group = namespace(entities=[]) %}
{%- for member in speakers if member!=speaker.entity_id %}
{%- set speaker_group.entities=speaker_group.entities+[{'entity_id' : member,'name': state_attr(member,'friendly_name')}] %}
{%- endfor %}
{{
{
'type': 'custom:mini-media-player',
'entity' : speaker.entity_id,
'artwork' : 'cover',
'group': false,
'hide': {
'power': true,
'icon': true,
'source': true
},
'speaker_group': {
'platform': 'sonos',
'sync_volume': true,
'show_group_count': true,
'entities': speaker_group.entities
}
}
}},
{%- endfor %} ]