HOWEVER, when I use Template in the Developer Tools, the result shows the list of all batteries (with %) along with all the sensors that have a battery.
The intention would be to only have to specify the card type once - instead for each entity that is included. I guess I could contruct a regex for entity_id but that would probably not look very nice either.
Idea is to show a list of shelly devices that have a firmware upgrade due and offer the option to upgrade in place. The secondary info, once it displays at all, should show the current and new firmware.
At the bottom of the list (via include) come the remaining shelly devices with the current firmware installed as secondary info.
I understand that I cannot use options: for templates, which would make this easier. Correct?
@kongo09 Love your use of code around the shellies and their firmware version.
I tried using your code but Iām missing the ālabel_cardā template, can you possibly post the code and would that cure the undefined bit I see?
After looking into the codeā¦
I think installed_version is old_version and latest_stable_version is new_version for me in the atrributes.
This corrected the undefined but I have no Shellyās out of date to test the new version part.
Why the difference in attribute though?
I have mine added via MQTT
Apologies, the label_card template is actually not required and I use that only for my personal styling. You donāt need the whole vertical-stack part at all. Try:
is it perhaps possible that i can only show devices that have the name āfenstersensor XXXXā
i tried different settings but i dont get only devices with this name
I want to list automation based on area. I can list all automation or entities based on area, can I combine both?
I named my automation in the following way, if the above is not possible, is it possible to filter the automation based on the first part of the automation name? eg: [Bedroom], [Dyson] etc?
Hello i have this card to show if something is open, is it possible to make like a ābottom card templateā to reduce duplicate code when i have to add all my sensors?
Any special reason to auto-create a list with just ONE entity with a known name?
Since you need to show the row only if āONā - you may use a conventional conditional row.
In general (not for this case which is unclear for me) - try using decluttering-card.
No special reason, I just didnāt know there was another way but thanks ill try it out!
Also I will see if I can figure out how to use decluttering-card
Is it possible to show the value of an attribute in the card rather than the main state value?
I have a bunch of Zigbee sensors integrated through zigbee2mqtt. They all have linkquality and battery attributes and some have other attributes as well. I would like to have a battery card that showed the battery levels of all of them for example.
- type: custom:auto-entities
card:
type: entities
unique: true
show_empty: true
filter:
include:
- entity_id: device_tracker.*
attributes:
ip: "*.*"
sort:
count: 2
method: name
options:
type: attribute ##### show attribute value
attribute: ip
secondary_info: last-changed
The most difficult issue is to specify a filter to show only your required entities.
In my example only trackers with present āipā attribute are listed.