Commit Graph

665 Commits

Author SHA1 Message Date
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
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