Commit Graph

650 Commits

Author SHA1 Message Date
Johannes
ccdc3a9a77 Update config.py 2022-12-29 16:35:01 +01:00
EddyK69
254f2a2e25 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
Johannes
688a847c77 fixes #649 2022-12-29 14:00:01 +01:00
Daniel Albert
0ee8120eed 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
Johannes
26eeb7e651 revert to if else syntax, to keep compatibility with python 3.9 2022-12-29 09:20:36 +01:00
Johannes
7057df2364 fix issue if there is only one top level card 2022-12-29 00:24:32 +01:00
Johannes
d57fddbbf5 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
5b10a37aa7 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
4492f4df1f 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
Johannes
9711cdc74b Update nspanel-lovelace-ui.py 2022-12-27 01:06:09 +01:00
Johannes Braun
529b0516f4 implementes #539 2022-12-25 15:43:23 +01:00
Johannes
b9504a2ff0 fixes #631 2022-12-25 10:32:45 +01:00
Johannes
b4b988b735 fixes #630 2022-12-24 23:47:02 +01:00
Johannes
d536957255 bump required berry driver version 2022-12-23 22:22:37 +01:00
Johannes
a476243a5f Update nspanel-lovelace-ui.py 2022-12-23 15:33:33 +01:00
Johannes Braun
3a3ea4ff55 . 2022-12-21 07:39:45 +01:00
Johannes Braun
98a1ce3f19 change timer from button to text 2022-12-21 07:05:36 +01:00
Johannes
512cab2eda Update icons.py 2022-12-21 06:51:58 +01:00
Johannes Braun
d72b941620 fix tnf 2022-12-20 22:33:54 +01:00
Johannes Braun
19f5d5732b implement translation timer popup 2022-12-20 22:18:38 +01:00
Johannes
47658a8d84 fix state and state_not 2022-12-20 21:35:33 +01:00
Johannes
979fe3d63b Update pages.py 2022-12-20 20:39:36 +01:00
Johannes Braun
482cab9e1a basic backend implementation for timer popup 2022-12-20 20:30:57 +01:00
Johannes
0307f1b62a fixes #621 2022-12-18 19:55:13 +01:00
Johannes
3b1b2257fa fixes #622 2022-12-17 23:56:47 +01:00
Johannes
e2e91adbb7 fix icon on screensaver 2022-12-15 00:09:28 +01:00
Johannes
f8c1c19dae Implement alternative font size for status icons 2022-12-14 23:51:17 +01:00
Johannes Braun
e6c64c369d some icon refactoring 2022-12-13 09:06:36 +01:00
Johannes Braun
5dd0db2b2f let speaker sel actually select and fix update #608 2022-12-09 23:56:07 +01:00
Johannes Braun
e8639859db fix 2022-12-09 23:30:13 +01:00
Johannes Braun
d36e8e5b6e render detail pages also on cardMedia #608 2022-12-09 23:24:22 +01:00
Johannes Braun
167fb78b07 use status entity for speaker sel if configured #608 2022-12-09 23:23:18 +01:00
Johannes Braun
eaaa89596d fix missing import in icons py 2022-12-09 15:43:18 +01:00
Johannes Braun
9e214b17f8 implement appdaemon side for #438 2022-12-09 15:39:58 +01:00
Johannes Braun
4e23de9304 fix upper icon #608 2022-12-09 15:02:16 +01:00
Johannes Braun
ffb2f374a8 changed icon and updated fallback page; fixes #608 2022-12-09 14:52:14 +01:00
Johannes Braun
c74e5f8b52 add speaker selection 2022-12-08 23:27:11 +01:00
Johannes Braun
082a871f7d fix media page/callbacks 2022-12-08 22:51:36 +01:00
Johannes Braun
926dcff260 replace some of the get icon calls 2022-12-08 22:29:19 +01:00
Johannes Braun
f2325a2dc5 started refactoring get_icons 2022-12-08 21:51:43 +01:00
Johannes Braun
a6a0e57213 fix icon 2022-12-06 21:40:39 +01:00
Johannes Braun
d6591d0638 replace icon with entities button 2022-12-06 21:03:09 +01:00
Johannes Braun
1851973a5a add type for mediabtn 2022-12-06 20:37:18 +01:00
Johannes Braun
233b6d54c7 fix 2022-12-06 19:19:00 +01:00
Johannes Braun
950dfe26d4 some changes for #608 2022-12-06 19:01:53 +01:00
Johannes
7e9d2bccd1 bump tasmota driver version 2022-11-29 20:35:22 +01:00
Johannes
07f8a347ff Update pages.py 2022-11-29 19:04:28 +01:00
Johannes
ce0133a8c0 Update controller.py 2022-11-28 17:37:58 +01:00
Johannes
f096bcb44d Update controller.py 2022-11-28 17:27:40 +01:00
Johannes Braun
2da02bf515 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-11-27 00:16:06 +01:00