#trying to hide cards/sections based on an entities enabled/disabled status

1 messages · Page 1 of 1 (latest)

analog fern
#

Christmas is over, so I disabled all my christmas-related entities. Think, smart plugs tucked away in the christmas tree/lights box, etc..

This year I made a simple "christmas" dashboard with these entities on it. But now, since the entities are disabled, it's #1) useless and #2) just reports the entities are disabled. Not ideal.

Been trying to figure out how to make the entity disappear from the dashboard, but since the device is disabled all the entities dont exist. Is there a way, in a conditional card, or a visibility condition the disabled/enabled status of a device or entitiy?

analog fern
#

trying to hide cards/sections based on an entities enabled/disabled status

pearl wigeon
#

I think "state not unavailable" is a legal entity test for a condition.

#

err sorry it is unknown

#

This card is hidden from my dashboard:

type: tile
entity: sensor.fakefakefake
visibility:
  - condition: state
    entity: sensor.fakefakefake
    state_not: unknown
#

(I had to use yaml mode to select the entity)