A smart home should be able to display the most relevant information at the top of the page (for example, that there is a leak in the house). Some things should be displayed at the top of the priorities (you need to develop the priorities of all entities), other entities should be brought up, depending, for example, on the time of day or other settings
You could use a conditional card to accomplish this.
I have a bunch of “high priority” sensors in a group tied to a boolean. If at least one of them triggers, then the conditional card can show as the first card on my Lovelace.
I do like the idea, but as you pointed out, this means that every single entity would need a “priority” level for this to work and self-modulate on the front-end.
You can already accomplish this.
Apart from the conditional card, you can also use the custom:auto-entities card.
I personally have an auto-entities card at the top of my home page.
I have specified different conditions such as alarms, water leaks, smoke sensors etc.
If none of the conditions is met, then the card won’t render.
Otherwise, you will have something like this:
Here’s an example:
type: 'custom:auto-entities'
show_empty: false
card:
type: entities
show_header_toggle: false
filter:
exclude:
- state: unavailable
- state: 'off'
include:
- entity_id: sensor.network_temperature
state: '> 20'
- entity_id: binary_sensor.alarm_state
state: 'on'
options:
icon: 'mdi:alarm-light-outline'
name: Alarms
- entity_id: binary_sensor.entrance_door
state: 'on'
options:
name: Entrance Door
- entity_id: binary_sensor.sink_flood
state: 'on'
options:
name: Water Leak
It is good, but it is HACS, it is better to have native support
would the entity_filter card do what you are looking for?
It could be combined with a conditional card to hide the card if there are no important items.