Commit Graph

651 Commits

Author SHA1 Message Date
joBr99
d2f35e738d Fix nav item if there is only one page 2022-12-29 16:44:24 +01:00
joBr99
23c9df2624 Update config.py 2022-12-29 16:35:01 +01:00
EddyK69
b6444dccb7 Respect iconOverride on navigate & service (#650)
iconOverrides on navigates & services where not shown when the status entity was of type 'sensor' on cardGrids
2022-12-29 14:09:23 +01:00
joBr99
7341fa7bd8 fixes #649 2022-12-29 14:00:01 +01:00
Daniel Albert
4f3dbf20e9 Add status functionality for non-entities (#645)
* 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>
2022-12-29 09:50:52 +01:00
joBr99
f79f976bc4 revert to if else syntax, to keep compatibility with python 3.9 2022-12-29 09:20:36 +01:00
joBr99
64d3bc9fd7 fix issue if there is only one top level card 2022-12-29 00:24:32 +01:00
joBr99
f0c5b5b429 start reworking navigation paramters (#644)
* modify cardGrid/cardEntities nav

* rework backend nav for new style

* fix some bugs

* update other pages with new nav paramters

* readd readme part
2022-12-28 20:00:44 +01:00
Daniel Albert
172fed930d Make single, right status icon possible (#640)
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>
2022-12-27 22:13:40 +01:00
Daniel Albert
4f66d0eaca Fix state / state_not logic error for entities (#637)
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>
2022-12-27 14:14:18 +01:00
joBr99
6eb94a4619 Update nspanel-lovelace-ui.py 2022-12-27 01:06:09 +01:00
joBr99
0cbb294557 implementes #539 2022-12-25 15:43:23 +01:00
joBr99
a6fbdf4c59 fixes #631 2022-12-25 10:32:45 +01:00
joBr99
477e5dc509 fixes #630 2022-12-24 23:47:02 +01:00
joBr99
3fd63f8302 bump required berry driver version 2022-12-23 22:22:37 +01:00
joBr99
c422209d47 Update nspanel-lovelace-ui.py 2022-12-23 15:33:33 +01:00
joBr99
61f6d9ca63 . 2022-12-21 07:39:45 +01:00
joBr99
d6a8043261 change timer from button to text 2022-12-21 07:05:36 +01:00
joBr99
4ed266141f Update icons.py 2022-12-21 06:51:58 +01:00
joBr99
cced2c35fd fix tnf 2022-12-20 22:33:54 +01:00
joBr99
b696bcbb62 implement translation timer popup 2022-12-20 22:18:38 +01:00
joBr99
1eb4d431a3 fix state and state_not 2022-12-20 21:35:33 +01:00
joBr99
4883f5d662 Update pages.py 2022-12-20 20:39:36 +01:00
joBr99
67c38d998c basic backend implementation for timer popup 2022-12-20 20:30:57 +01:00
joBr99
26157dd11b fixes #621 2022-12-18 19:55:13 +01:00
joBr99
602983b1d4 fixes #622 2022-12-17 23:56:47 +01:00
joBr99
8d370f542c fix icon on screensaver 2022-12-15 00:09:28 +01:00
joBr99
2206f64118 Implement alternative font size for status icons 2022-12-14 23:51:17 +01:00
joBr99
6d2f4c6652 some icon refactoring 2022-12-13 09:06:36 +01:00
joBr99
1e3b277def let speaker sel actually select and fix update #608 2022-12-09 23:56:07 +01:00
joBr99
218a500d17 fix 2022-12-09 23:30:13 +01:00
joBr99
922a3e3732 render detail pages also on cardMedia #608 2022-12-09 23:24:22 +01:00
joBr99
3bfaf8ead8 use status entity for speaker sel if configured #608 2022-12-09 23:23:18 +01:00
joBr99
30ba576860 fix missing import in icons py 2022-12-09 15:43:18 +01:00
joBr99
6a5175fda2 implement appdaemon side for #438 2022-12-09 15:39:58 +01:00
joBr99
b4f182d3e9 fix upper icon #608 2022-12-09 15:02:16 +01:00
joBr99
0f97753c3c changed icon and updated fallback page; fixes #608 2022-12-09 14:52:14 +01:00
joBr99
c98a09814e add speaker selection 2022-12-08 23:27:11 +01:00
joBr99
96aa232357 fix media page/callbacks 2022-12-08 22:51:36 +01:00
joBr99
f783649ad2 replace some of the get icon calls 2022-12-08 22:29:19 +01:00
joBr99
682406cc0d started refactoring get_icons 2022-12-08 21:51:43 +01:00
joBr99
a42c584768 fix icon 2022-12-06 21:40:39 +01:00
joBr99
3a1d522187 replace icon with entities button 2022-12-06 21:03:09 +01:00
joBr99
b3740823dc add type for mediabtn 2022-12-06 20:37:18 +01:00
joBr99
6094ae37fe fix 2022-12-06 19:19:00 +01:00
joBr99
cdfb3767de some changes for #608 2022-12-06 19:01:53 +01:00
joBr99
11b91fcf2c bump tasmota driver version 2022-11-29 20:35:22 +01:00
joBr99
ae1d6f1c85 Update pages.py 2022-11-29 19:04:28 +01:00
joBr99
9f468524cd Update controller.py 2022-11-28 17:37:58 +01:00
joBr99
0bf84a3b0d Update controller.py 2022-11-28 17:27:40 +01:00