Commit Graph

687 Commits

Author SHA1 Message Date
joBr99
ec97030cbc implement new cardpower format 2023-01-30 21:17:28 +01:00
joBr99
d6bcdddae6 Update nspanel-lovelace-ui.py 2023-01-30 20:35:38 +01:00
joBr99
9fe1dd8cb3 Update pages.py 2023-01-30 20:17:43 +01:00
joBr99
9c8deb9f59 Update icon_mapping.py 2023-01-30 17:43:27 +01:00
joBr99
48979fdc65 Update pages.py 2023-01-30 17:18:20 +01:00
joBr99
7e2370ece7 implement value override on cardpower 2023-01-29 23:14:20 +01:00
joBr99
6d1661d6bd Update nspanel-lovelace-ui.py 2023-01-29 22:20:50 +01:00
joBr99
3c6c00739b fix theme 2023-01-29 22:20:03 +01:00
joBr99
7f0cc453c0 fix theme 2023-01-29 21:56:58 +01:00
joBr99
8dfe5e87d4 fix theme 2023-01-29 21:29:44 +01:00
joBr99
516a2dc000 implement #449 2023-01-29 20:16:19 +01:00
joBr99
6c17311500 partly implement #389 2023-01-29 18:29:04 +01:00
joBr99
e6c1f7f781 Update nspanel-lovelace-ui.py 2023-01-29 17:18:23 +01:00
joBr99
005ee04e6d Update pages.py 2023-01-24 12:06:01 +01:00
joBr99
322f07b133 implements #272 2023-01-22 14:19:18 +01:00
joBr99
8ed59fb8f1 sync some more changes to US-P 2023-01-22 12:49:55 +01:00
joBr99
58bc0c1f1e refactor screensaver 2023-01-21 21:32:10 +01:00
joBr99
87b6a134b5 new alt screensaver 2023-01-21 00:07:11 +01:00
joBr99
c177e2d639 add docs 2023-01-14 15:14:11 +01:00
joBr99
ebe1d82924 some final cleanup of power page 2023-01-14 14:46:46 +01:00
joBr99
1eece44be5 Update pages.py 2023-01-12 22:37:30 +01:00
joBr99
bb5f2286e7 Update pages.py 2023-01-12 22:18:07 +01:00
joBr99
c81e073b15 fix 2023-01-09 19:14:17 +01:00
joBr99
716db705c2 Update nspanel-lovelace-ui.py 2023-01-07 11:41:23 +01:00
joBr99
701a4a4c31 bump version to 3.8.2 2023-01-06 14:44:44 +01:00
joBr99
72f127d3f9 fixes #670 2023-01-06 14:38:48 +01:00
joBr99
0124ecc165 Fix Prev/Next UUID Assignment in #665 Implementation fixes #669 2023-01-06 01:22:05 +01:00
joBr99
dee309788c Update nspanel-lovelace-ui.py 2023-01-05 21:09:31 +01:00
Daniel Albert
fa916931c1 Make neighbor card generation work in Python < 3.10 (#665)
Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
Co-authored-by: Johannes <johannes+develop+github@braun-rheingau.de>
2023-01-04 21:18:38 +01:00
joBr99
c692c7fb56 fix template None template call 2023-01-04 20:51:13 +01:00
joBr99
62c429d51e use shorter custom ids instand of uuid 2023-01-04 19:44:40 +01:00
joBr99
12df30b018 implements #633 2023-01-04 18:07:59 +01:00
kayvenm
0cd3045340 Fix for empty detail page after change on previous page (#662)
* Update mqtt.py

Allow force sending duplicate messages

* Update pages.py

Allow forcing sending MQTT message when the detail page is initially generated

* Update controller.py

Set is_open_detail to True when generate_xx_detail_page is called from detail_open
2023-01-03 14:14:06 +01:00
joBr99
925e34e136 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-12-30 14:00:14 +01:00
joBr99
42034c2054 implements #652 2022-12-30 13:59:57 +01:00
EddyK69
68655dc510 Allow icons based on state of status entity (#651)
* 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
2022-12-29 18:32:20 +01:00
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