What would be the way to show a card if all other cards are hidden?
My default view has cards that show e.g. all lights that are on, one card to control climate entity when it is on, open windows and some conditional cards. Point is that these cards are not visible if everything is ok and devices are off. Currently I use conditional card and custom card auto-entities.
But if the view is empty I’d like to have a card indicating with a text that “Everything OK”. Instead of having the view blank.
I can only think of making one card including all the other cards conditions but that seems very hard to maintain.
Config below
views:
- badges: []
cards:
- card:
title: Lights that are on
type: entities
filter:
exclude:
- state: 'off'
- state: unavailable
- domain: sensor
- domain: automation
- attributes:
is_hue_group: true
domain: light
include:
- domain: light
state: 'on'
- name: '/[Ll]ight/'
not:
domain: light
show_empty: false
type: 'custom:auto-entities'
- card:
title: States
type: entities
filter:
exclude:
- domain: zwave
- domain: sensor
- domain: automation
- entity_id: '*motion*'
- entity_id: binary_sensor.room_2_door
include:
- entity_id: null
- entity_id: '*door*'
state: 'on'
- entity_id: '*window*'
state: 'on'
show_empty: false
type: 'custom:auto-entities'
- type: conditional
conditions:
- entity: climate.heat_pump
state_not: 'off'
card:
type: 'custom:auto-entities'
show_empty: false
card:
type: entities
title: Ilmalämpöpumppu
show_header_toggle: false
entities:
- climate.heat_pump
- input_boolean.heatpump_stop_timer
filter:
include: null
exclude: null
template: >
{%if
is_state('input_boolean.heatpump_stop_timer','on')%}input_number.heatpump_on_time{%endif%}
{%if
is_state('input_boolean.heatpump_stop_timer','on')%}sensor.heatpump_time_left{%endif%}