mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 22:47:01 +01:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70211d563f | ||
|
|
20743c3006 | ||
|
|
fe401cc7c2 | ||
|
|
b3d0d05fe0 | ||
|
|
006e8d37c1 | ||
|
|
954733691f | ||
|
|
48171d3256 | ||
|
|
03938e05ea | ||
|
|
0074a29c31 | ||
|
|
948d70f55a | ||
|
|
d41e031c14 | ||
|
|
f19b3bac36 | ||
|
|
1578b1d43b | ||
|
|
7abb24378f | ||
|
|
51e8b83244 | ||
|
|
29de6438cf | ||
|
|
425f601e8c | ||
|
|
111138005f | ||
|
|
b93643f1cc | ||
|
|
1f017d6c3f | ||
|
|
68d353b03c | ||
|
|
4c460247ff |
@@ -6,10 +6,6 @@ pageIcons
|
||||
7 Component(s)
|
||||
0 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
|
||||
25 Component(s)
|
||||
398 Line(s) of event code
|
||||
@@ -26,6 +22,10 @@ popupInSel
|
||||
34 Component(s)
|
||||
617 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
|
||||
26 Component(s)
|
||||
68 Line(s) of event code
|
||||
@@ -90,5 +90,5 @@ cardEntities
|
||||
Total
|
||||
21 Page(s)
|
||||
800 Component(s)
|
||||
9218 Line(s) of event code
|
||||
9222 Line(s) of event code
|
||||
2331 Unique line(s) of event code
|
||||
|
||||
@@ -628,6 +628,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
@@ -399,6 +399,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||
+I/n2t-out/cardEntities.txt
|
||||
|
||||
@@ -14,10 +14,6 @@ popupLight
|
||||
28 Component(s)
|
||||
408 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
|
||||
27 Component(s)
|
||||
351 Line(s) of event code
|
||||
@@ -58,6 +54,10 @@ pageStartup
|
||||
19 Component(s)
|
||||
189 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
|
||||
59 Component(s)
|
||||
645 Line(s) of event code
|
||||
@@ -90,5 +90,5 @@ cardEntities
|
||||
Total
|
||||
21 Page(s)
|
||||
811 Component(s)
|
||||
9622 Line(s) of event code
|
||||
9626 Line(s) of event code
|
||||
2453 Unique line(s) of event code
|
||||
|
||||
@@ -628,6 +628,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
@@ -399,6 +399,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -10,10 +10,6 @@ popupThermo
|
||||
44 Component(s)
|
||||
519 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
|
||||
34 Component(s)
|
||||
406 Line(s) of event code
|
||||
@@ -26,6 +22,10 @@ cardChart
|
||||
33 Component(s)
|
||||
433 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
|
||||
26 Component(s)
|
||||
68 Line(s) of event code
|
||||
@@ -90,5 +90,5 @@ cardEntities
|
||||
Total
|
||||
21 Page(s)
|
||||
802 Component(s)
|
||||
9242 Line(s) of event code
|
||||
9246 Line(s) of event code
|
||||
2340 Unique line(s) of event code
|
||||
|
||||
@@ -628,6 +628,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
@@ -399,6 +399,10 @@ Timer tmSerial
|
||||
{
|
||||
page screensaver
|
||||
}
|
||||
if(tId.txt=="screensaver2")
|
||||
{
|
||||
page screensaver2
|
||||
}
|
||||
if(tId.txt=="cardEntities")
|
||||
{
|
||||
page cardEntities
|
||||
|
||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -38,8 +38,12 @@ class Card(object):
|
||||
self.cardType = card_input_config.get("type", "unknown")
|
||||
self.title = card_input_config.get("title", "unknown")
|
||||
self.key = card_input_config.get("key", "unknown")
|
||||
self.nav1Override = card_input_config.get("navItem1")
|
||||
self.nav2Override = card_input_config.get("navItem2")
|
||||
self.nav1Override = None
|
||||
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.last_update = 0
|
||||
self.cooldown = card_input_config.get("cooldown", 0)
|
||||
@@ -69,8 +73,7 @@ class Card(object):
|
||||
for ent_key in add_ent_keys:
|
||||
val = self.raw_config.get(ent_key)
|
||||
if val is not None:
|
||||
#entityIds.append(val.get("entity"))
|
||||
entityIds["nouuid."] = val.get("entity")
|
||||
entityIds[f"{ent_key}."] = val.get("entity")
|
||||
|
||||
if uuid:
|
||||
return entityIds
|
||||
@@ -84,6 +87,10 @@ class Card(object):
|
||||
if self.entities:
|
||||
for e in self.entities:
|
||||
entitys.append(e)
|
||||
if self.nav1Override:
|
||||
entitys.append(self.nav1Override)
|
||||
if self.nav2Override:
|
||||
entitys.append(self.nav2Override)
|
||||
return entitys
|
||||
|
||||
|
||||
@@ -121,7 +128,6 @@ class LuiBackendConfig(object):
|
||||
'dateAdditionalTemplate': "",
|
||||
'timeAdditionalTemplate': "",
|
||||
'dateFormat': "%A, %d. %B %Y",
|
||||
'homeButton': False,
|
||||
'cards': [{
|
||||
'type': 'cardEntities',
|
||||
'entities': [{
|
||||
|
||||
@@ -492,7 +492,7 @@ class LuiPagesGen(object):
|
||||
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')
|
||||
|
||||
detailPage = ""
|
||||
detailPage = "1"
|
||||
if any(x in ["preset_modes", "swing_modes", "fan_modes"] for x in entity.attributes):
|
||||
detailPage = "0"
|
||||
|
||||
@@ -695,10 +695,10 @@ class LuiPagesGen(object):
|
||||
rightBtn = "delete~~~~~"
|
||||
|
||||
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:
|
||||
rightBtn = self.generate_entities_item(Entity(card.nav2Override))[1:]
|
||||
rightBtn = self.generate_entities_item(card.nav2Override)[1:]
|
||||
|
||||
navigation = f"{leftBtn}~{rightBtn}"
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
||||
|
||||
desired_tasmota_driver_version = 8
|
||||
desired_display_firmware_version = 50
|
||||
version = "v4.0.1"
|
||||
version = "v4.0.3"
|
||||
|
||||
model = cfg.get("model")
|
||||
if model == "us-l":
|
||||
|
||||
@@ -72,7 +72,8 @@ key | optional | type | default | description
|
||||
`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
|
||||
`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
|
||||
|
||||
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
Reference in New Issue
Block a user