Compare commits

..

22 Commits

Author SHA1 Message Date
joBr99
70211d563f fixes #798 2023-03-05 20:21:02 +01:00
joBr99
20743c3006 fixes #795 2023-03-05 20:07:21 +01:00
Johannes
fe401cc7c2 Update config.py 2023-03-05 10:19:39 +01:00
Johannes
b3d0d05fe0 Update config-overview.md 2023-03-05 10:16:21 +01:00
Johannes
006e8d37c1 Update config.py 2023-03-05 10:05:39 +01:00
Armilar
954733691f v4.0.4
- Fix bExit pageId with popup's
2023-03-04 13:11:42 +01:00
Armilar
48171d3256 v4.0.4
- Fix bExit pageId with popup's
2023-03-04 13:08:10 +01:00
Armilar
03938e05ea v4.0.4
- Fix bExit pageId with popup's
2023-03-04 13:05:50 +01:00
Johannes
0074a29c31 fixes #739 2023-03-03 16:39:32 +01:00
joBr99
948d70f55a fix #789 2023-02-28 20:12:15 +01:00
Johannes
d41e031c14 Update nspanel-lovelace-ui.py 2023-02-27 20:04:00 +01:00
joBr99
f19b3bac36 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-02-27 20:00:33 +01:00
joBr99
1578b1d43b update iobroker skript to 4.0.3 2023-02-27 20:00:21 +01:00
joBr99
7abb24378f Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-02-27 18:57:49 +00:00
joBr99
51e8b83244 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-02-27 19:53:54 +01:00
joBr99
29de6438cf bugfix popupNotify to screensaver2 2023-02-27 19:53:45 +01:00
joBr99
425f601e8c . 2023-02-27 19:53:34 +01:00
joBr99
111138005f . 2023-02-27 19:53:31 +01:00
Armilar
b93643f1cc v4.0.2 - Release
- Add new HMI Serial-Protocol to cardPower
- Check whether setObjects is set
- Add Screensaver2 - Renew all Screensaver functions
- Fix bExit - to much notify~~ events outside of screensaver --> Black Screens
- Add Screensaver2 Parameter to Service Pages
- Add cardUnlock
- Extension of the Squeezebox player by bembelstemmer
- cardChart/cardLChart YAxisTicks from a datapoint by bembelstemmer
- Make Temperature Steps configurable by bembelstemmer
- Hotfix cardThermo Status by Gargano
- Optimize cardThermo by bembelstemmer
- use dynamically Indicator-Icons in Advanced-Screensaver by Gargano
2023-02-27 17:12:22 +01:00
Armilar
1f017d6c3f v4.0.2 - Release
- Add new HMI Serial-Protocol to cardPower
- Check whether setObjects is set
- Add Screensaver2 - Renew all Screensaver functions
- Fix bExit - to much notify~~ events outside of screensaver --> Black Screens
- Add Screensaver2 Parameter to Service Pages
- Add cardUnlock
- Extension of the Squeezebox player by bembelstemmer
- cardChart/cardLChart YAxisTicks from a datapoint by bembelstemmer
- Make Temperature Steps configurable by bembelstemmer
- Hotfix cardThermo Status by Gargano
- Optimize cardThermo by bembelstemmer
- use dynamically Indicator-Icons in Advanced-Screensaver by Gargano
2023-02-27 16:54:46 +01:00
Armilar
68d353b03c v4.0.0
- Add new HMI Serial-Protocol to cardPower
- Check whether setObjects is set
- Add Screensaver2 - Renew all Screensaver functions
- Fix bExit - to much notify~~ events outside of screensaver --> Black Screens
- Add Screensaver2 Parameter to Service Pages
- Add cardUnlock
- Extension of the Squeezebox player by bembelstemmer
- cardChart/cardLChart YAxisTicks from a datapoint by bembelstemmer
- Make Temperature Steps configurable by bembelstemmer
- Hotfix cardThermo Status by Gargano
- Optimize cardThermo by bembelstemmer
2023-02-27 15:27:02 +01:00
Armilar
4c460247ff v4.0.0 - Update
- Add new HMI Serial-Protocol to cardPower
- Check whether setObjects is set
- Add Screensaver2 - Renew all Screensaver functions
- Fix bExit - to much notify~~ events outside of screensaver --> Black Screens
- Add Screensaver2 Parameter to Service Pages
- Add cardUnlock
- Extension of the Squeezebox player by bembelstemmer
- cardChart/cardLChart YAxisTicks from a datapoint by bembelstemmer
- Make Temperature Steps configurable by bembelstemmer
- Hotfix cardThermo Status by Gargano
- Optimize cardThermo by bembelstemmer
2023-02-27 15:14:25 +01:00
22 changed files with 1868 additions and 720 deletions

View File

@@ -6,10 +6,6 @@ pageIcons
7 Component(s) 7 Component(s)
0 Line(s) of event code 0 Line(s) of event code
0 Unique line(s) of event code 0 Unique line(s) of event code
popupNotify
19 Component(s)
257 Line(s) of event code
166 Unique line(s) of event code
popupShutter popupShutter
25 Component(s) 25 Component(s)
398 Line(s) of event code 398 Line(s) of event code
@@ -26,6 +22,10 @@ popupInSel
34 Component(s) 34 Component(s)
617 Line(s) of event code 617 Line(s) of event code
295 Unique line(s) of event code 295 Unique line(s) of event code
popupNotify
19 Component(s)
261 Line(s) of event code
168 Unique line(s) of event code
pageTest pageTest
26 Component(s) 26 Component(s)
68 Line(s) of event code 68 Line(s) of event code
@@ -90,5 +90,5 @@ cardEntities
Total Total
21 Page(s) 21 Page(s)
800 Component(s) 800 Component(s)
9218 Line(s) of event code 9222 Line(s) of event code
2331 Unique line(s) of event code 2331 Unique line(s) of event code

View File

@@ -628,6 +628,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -399,6 +399,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2023-02-18 15:07:51.297065909 +0000 +++ /dev/fd/62 2023-02-27 18:57:41.462287194 +0000
+I/n2t-out/Program.s.txt +I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt ++ HMI/US/portrait/n2t-out/Program.s.txt
+I/n2t-out/cardEntities.txt +I/n2t-out/cardEntities.txt

View File

@@ -14,10 +14,6 @@ popupLight
28 Component(s) 28 Component(s)
408 Line(s) of event code 408 Line(s) of event code
225 Unique line(s) of event code 225 Unique line(s) of event code
popupNotify
19 Component(s)
257 Line(s) of event code
166 Unique line(s) of event code
popupFan popupFan
27 Component(s) 27 Component(s)
351 Line(s) of event code 351 Line(s) of event code
@@ -58,6 +54,10 @@ pageStartup
19 Component(s) 19 Component(s)
189 Line(s) of event code 189 Line(s) of event code
133 Unique line(s) of event code 133 Unique line(s) of event code
popupNotify
19 Component(s)
261 Line(s) of event code
168 Unique line(s) of event code
cardMedia cardMedia
59 Component(s) 59 Component(s)
645 Line(s) of event code 645 Line(s) of event code
@@ -90,5 +90,5 @@ cardEntities
Total Total
21 Page(s) 21 Page(s)
811 Component(s) 811 Component(s)
9622 Line(s) of event code 9626 Line(s) of event code
2453 Unique line(s) of event code 2453 Unique line(s) of event code

View File

@@ -628,6 +628,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -399,6 +399,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

Binary file not shown.

Binary file not shown.

View File

@@ -10,10 +10,6 @@ popupThermo
44 Component(s) 44 Component(s)
519 Line(s) of event code 519 Line(s) of event code
274 Unique line(s) of event code 274 Unique line(s) of event code
popupNotify
19 Component(s)
257 Line(s) of event code
166 Unique line(s) of event code
cardQR cardQR
34 Component(s) 34 Component(s)
406 Line(s) of event code 406 Line(s) of event code
@@ -26,6 +22,10 @@ cardChart
33 Component(s) 33 Component(s)
433 Line(s) of event code 433 Line(s) of event code
294 Unique line(s) of event code 294 Unique line(s) of event code
popupNotify
19 Component(s)
261 Line(s) of event code
168 Unique line(s) of event code
pageTest pageTest
26 Component(s) 26 Component(s)
68 Line(s) of event code 68 Line(s) of event code
@@ -90,5 +90,5 @@ cardEntities
Total Total
21 Page(s) 21 Page(s)
802 Component(s) 802 Component(s)
9242 Line(s) of event code 9246 Line(s) of event code
2340 Unique line(s) of event code 2340 Unique line(s) of event code

View File

@@ -628,6 +628,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -399,6 +399,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

Binary file not shown.

Binary file not shown.

View File

@@ -38,8 +38,12 @@ class Card(object):
self.cardType = card_input_config.get("type", "unknown") self.cardType = card_input_config.get("type", "unknown")
self.title = card_input_config.get("title", "unknown") self.title = card_input_config.get("title", "unknown")
self.key = card_input_config.get("key", "unknown") self.key = card_input_config.get("key", "unknown")
self.nav1Override = card_input_config.get("navItem1") self.nav1Override = None
self.nav2Override = card_input_config.get("navItem2") if card_input_config.get("navItem1"):
self.nav1Override = Entity(card_input_config.get("navItem1"))
self.nav2Override = None
if card_input_config.get("navItem2"):
self.nav2Override = Entity(card_input_config.get("navItem2"))
self.sleepTimeout = card_input_config.get("sleepTimeout") self.sleepTimeout = card_input_config.get("sleepTimeout")
self.last_update = 0 self.last_update = 0
self.cooldown = card_input_config.get("cooldown", 0) self.cooldown = card_input_config.get("cooldown", 0)
@@ -69,8 +73,7 @@ class Card(object):
for ent_key in add_ent_keys: for ent_key in add_ent_keys:
val = self.raw_config.get(ent_key) val = self.raw_config.get(ent_key)
if val is not None: if val is not None:
#entityIds.append(val.get("entity")) entityIds[f"{ent_key}."] = val.get("entity")
entityIds["nouuid."] = val.get("entity")
if uuid: if uuid:
return entityIds return entityIds
@@ -84,6 +87,10 @@ class Card(object):
if self.entities: if self.entities:
for e in self.entities: for e in self.entities:
entitys.append(e) entitys.append(e)
if self.nav1Override:
entitys.append(self.nav1Override)
if self.nav2Override:
entitys.append(self.nav2Override)
return entitys return entitys
@@ -121,7 +128,6 @@ class LuiBackendConfig(object):
'dateAdditionalTemplate': "", 'dateAdditionalTemplate': "",
'timeAdditionalTemplate': "", 'timeAdditionalTemplate': "",
'dateFormat': "%A, %d. %B %Y", 'dateFormat': "%A, %d. %B %Y",
'homeButton': False,
'cards': [{ 'cards': [{
'type': 'cardEntities', 'type': 'cardEntities',
'entities': [{ 'entities': [{

View File

@@ -492,7 +492,7 @@ class LuiPagesGen(object):
state_translation = get_translation(self._locale, "frontend.ui.panel.config.devices.entities.state") state_translation = get_translation(self._locale, "frontend.ui.panel.config.devices.entities.state")
action_translation = get_translation(self._locale, "frontend.ui.card.climate.operation").replace(' ','\r\n') action_translation = get_translation(self._locale, "frontend.ui.card.climate.operation").replace(' ','\r\n')
detailPage = "" detailPage = "1"
if any(x in ["preset_modes", "swing_modes", "fan_modes"] for x in entity.attributes): if any(x in ["preset_modes", "swing_modes", "fan_modes"] for x in entity.attributes):
detailPage = "0" detailPage = "0"
@@ -695,10 +695,10 @@ class LuiPagesGen(object):
rightBtn = "delete~~~~~" rightBtn = "delete~~~~~"
if card.nav1Override is not None: if card.nav1Override is not None:
leftBtn = self.generate_entities_item(Entity(card.nav1Override))[1:] leftBtn = self.generate_entities_item(card.nav1Override)[1:]
if card.nav2Override is not None: if card.nav2Override is not None:
rightBtn = self.generate_entities_item(Entity(card.nav2Override))[1:] rightBtn = self.generate_entities_item(card.nav2Override)[1:]
navigation = f"{leftBtn}~{rightBtn}" navigation = f"{leftBtn}~{rightBtn}"

View File

@@ -28,7 +28,7 @@ class NsPanelLovelaceUIManager(hass.Hass):
desired_tasmota_driver_version = 8 desired_tasmota_driver_version = 8
desired_display_firmware_version = 50 desired_display_firmware_version = 50
version = "v4.0.1" version = "v4.0.3"
model = cfg.get("model") model = cfg.get("model")
if model == "us-l": if model == "us-l":

View File

@@ -72,7 +72,8 @@ key | optional | type | default | description
`cards` | False | complex | | configuration for cards that are displayed on panel; see docs for cards `cards` | False | complex | | configuration for cards that are displayed on panel; see docs for cards
`screensaver` | True | complex | | configuration for screensaver; see docs for screensaver `screensaver` | True | complex | | configuration for screensaver; see docs for screensaver
`hiddenCards` | True | complex | | configuration for cards that can be accessed though navigate items; see docs for cards `hiddenCards` | True | complex | | configuration for cards that can be accessed though navigate items; see docs for cards
`homeButton` | True | boolean | False | show home button on subpages
## Details on sleepBrightness/screenBrightness and other configs related to screen brightness ## Details on sleepBrightness/screenBrightness and other configs related to screen brightness
It is possible to schedule a brightness change for the screen at specific times. It is possible to schedule a brightness change for the screen at specific times.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff