Commit Graph

310 Commits

Author SHA1 Message Date
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
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
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
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 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 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 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
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
e8639859db fix 2022-12-09 23:30:13 +01:00
Johannes Braun
167fb78b07 use status entity for speaker sel if configured #608 2022-12-09 23:23: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
07f8a347ff Update pages.py 2022-11-29 19:04:28 +01:00
Johannes Braun
2da02bf515 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-11-27 00:16:06 +01:00
Johannes Braun
c82797e4e5 implement shuffle button 2022-11-27 00:15:52 +01:00
Johannes
dff517fddc fix #595 2022-11-26 23:33:17 +01:00
Johannes
aa04f6dd8f implements #595 2022-11-26 01:26:54 +01:00
Johannes
2d354a8eac fixes #586 2022-11-21 12:06:51 +01:00
Johannes
05e3cf9efa add color fields on cardMedia implements #584 2022-11-19 23:40:10 +01:00
Johannes
dbab5e9730 limit number of options for effects for now 2022-11-05 09:24:33 +01:00
Johannes
f90b4609b3 Update pages.py 2022-11-03 20:21:05 +01:00
Johannes
ae63ccd657 implemented #479 2022-11-03 17:06:56 +01:00
Johannes
afaa6b37d9 change insel popup cmd 2022-10-31 20:24:29 +01:00
Johannes
61dd5dfb92 fix 2022-10-31 19:52:36 +01:00