mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 23:44:25 +01:00
* Add status functionality for non-entities I wanted to show services on `cardGrid` pages conditionally, using the `state` and `state_not` options and based on a `status` entity. The documentation looked as if this was possible, however it didn't work due to the order of evaluation. This change makes it possible to hide any item using `state` / `state_not`, based on either the `entity` itself or the information provided by the `status` entity. This basically implements #483, I think. * Use if/then/else instead of and/or expression evaluation rules This improves the readability of the code for people not familiar with the evaluation of and / or expressions. Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>