Commit Graph

681 Commits

Author SHA1 Message Date
Johannes
735d017353 Update nspanel-lovelace-ui.py 2023-01-29 22:20:50 +01:00
Johannes Braun
e96b45e2ba fix theme 2023-01-29 22:20:03 +01:00
Johannes Braun
8d2e19aafb fix theme 2023-01-29 21:56:58 +01:00
Johannes Braun
b893cc07b4 fix theme 2023-01-29 21:29:44 +01:00
Johannes Braun
200a0f5330 implement #449 2023-01-29 20:16:19 +01:00
Johannes
1069939676 partly implement #389 2023-01-29 18:29:04 +01:00
Johannes
662c063897 Update nspanel-lovelace-ui.py 2023-01-29 17:18:23 +01:00
Johannes
a1c4afa77d Update pages.py 2023-01-24 12:06:01 +01:00
Johannes Braun
4a07637018 implements #272 2023-01-22 14:19:18 +01:00
Johannes Braun
7cbcb2de70 sync some more changes to US-P 2023-01-22 12:49:55 +01:00
Johannes Braun
9cff64e184 refactor screensaver 2023-01-21 21:32:10 +01:00
Johannes Braun
d0294c97bb new alt screensaver 2023-01-21 00:07:11 +01:00
Johannes Braun
f38eb9923c add docs 2023-01-14 15:14:11 +01:00
Johannes Braun
a8c32c3542 some final cleanup of power page 2023-01-14 14:46:46 +01:00
Johannes
553caa7d87 Update pages.py 2023-01-12 22:37:30 +01:00
Johannes
5a6cb28e74 Update pages.py 2023-01-12 22:18:07 +01:00
Johannes
15510cd767 fix 2023-01-09 19:14:17 +01:00
Johannes
ade8c0d10a Update nspanel-lovelace-ui.py 2023-01-07 11:41:23 +01:00
Johannes
1400ef039b bump version to 3.8.2 2023-01-06 14:44:44 +01:00
Johannes
cbc256bbf9 fixes #670 2023-01-06 14:38:48 +01:00
Johannes
f7cba480cf Fix Prev/Next UUID Assignment in #665 Implementation fixes #669 2023-01-06 01:22:05 +01:00
Johannes
c626a4eb27 Update nspanel-lovelace-ui.py 2023-01-05 21:09:31 +01:00
Daniel Albert
ed620559aa 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
Johannes Braun
6870bfe3ff fix template None template call 2023-01-04 20:51:13 +01:00
Johannes Braun
6951da126a use shorter custom ids instand of uuid 2023-01-04 19:44:40 +01:00
Johannes Braun
dca2db7ce3 implements #633 2023-01-04 18:07:59 +01:00
kayvenm
cfd74ce87f 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
Johannes Braun
c410c0863e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-12-30 14:00:14 +01:00
Johannes Braun
18c6cfd7b1 implements #652 2022-12-30 13:59:57 +01:00
EddyK69
f7b51c359e 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
Johannes
494a8d49fa Fix nav item if there is only one page 2022-12-29 16:44:24 +01:00
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