* Respect iconOverride on navigate & service
iconOverrides on navigates & services where not shown when the status entity was of type 'sensor' on cardGrids
* Allow icons based on state of status entity
Allow icons based on state of status entity on navigate
* 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>
According to the [screensaver documentation](https://docs.nspanel.pky.eu/config-screensaver/),
the `statusIcon2` option controls the status icon right of the date.
However, if only `statusIcon2` is configured, it would have landed on the left
side, instead of the right side.
This commit adds padding for unconfigured status icons.
Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
According to the documentation, an entity is only displayed
* if `state` is set: if the entity state is equal to the `state` value
* if `state_not` is set: if the entity state is _not_ equal to the `state_not` value
So `""` – an **empty** string – shall only be returned – i.e. the **entity be hidden**
* if `state` is set: if the entity state is **not** equal to the `state` value
* if `state_not` is set: if the entity state is equal to the `state_not` value
Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>