mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffcd872f4a | ||
|
|
d34a835363 | ||
|
|
40d17f9641 | ||
|
|
9eb543467b | ||
|
|
86594de18d | ||
|
|
14efa10683 | ||
|
|
7f38c6b346 | ||
|
|
17cf7d40c5 | ||
|
|
9ff8506035 | ||
|
|
757ffcd129 | ||
|
|
ac96ff595a | ||
|
|
7c1fe558f9 | ||
|
|
98ec0aca45 | ||
|
|
df105a2233 | ||
|
|
a33c58941c | ||
|
|
33c0c4402f | ||
|
|
1529115fb5 | ||
|
|
210b90ff8f | ||
|
|
e9a69651d7 | ||
|
|
e576af72b7 | ||
|
|
e5e88e3a5e | ||
|
|
957cde8384 | ||
|
|
ddc8818aae | ||
|
|
252339d36c | ||
|
|
0803dd5214 | ||
|
|
586af0aac3 | ||
|
|
65032dc3a0 | ||
|
|
a6c617fc44 | ||
|
|
f0a3a04edb | ||
|
|
df8e913831 | ||
|
|
d78a6c4ed7 | ||
|
|
cb542f1e77 |
@@ -1424,6 +1424,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1710,6 +1710,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1741,6 +1741,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -72,20 +72,20 @@ cardThermo
|
||||
319 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
579 Line(s) of event code
|
||||
330 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
699 Line(s) of event code
|
||||
354 Unique line(s) of event code
|
||||
583 Line(s) of event code
|
||||
332 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
693 Line(s) of event code
|
||||
384 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
412 Line(s) of event code
|
||||
227 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
689 Line(s) of event code
|
||||
382 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
703 Line(s) of event code
|
||||
356 Unique line(s) of event code
|
||||
cardEntities
|
||||
67 Component(s)
|
||||
1194 Line(s) of event code
|
||||
@@ -98,5 +98,5 @@ screensaver2
|
||||
Total
|
||||
23 Page(s)
|
||||
875 Component(s)
|
||||
10556 Line(s) of event code
|
||||
10568 Line(s) of event code
|
||||
2450 Unique line(s) of event code
|
||||
|
||||
@@ -976,6 +976,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1174,6 +1174,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1253,6 +1253,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
+++ /dev/fd/62 2023-09-16 10:55:16.569411880 +0000
|
||||
+++ /dev/fd/62 2023-10-14 14:36:40.102098093 +0000
|
||||
+I/n2t-out/Program.s.txt
|
||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||
+1 +12,11 @@
|
||||
|
||||
@@ -1424,6 +1424,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1853,6 +1853,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1741,6 +1741,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -38,10 +38,10 @@ cardChart
|
||||
33 Component(s)
|
||||
437 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
579 Line(s) of event code
|
||||
330 Unique line(s) of event code
|
||||
cardGrid2
|
||||
56 Component(s)
|
||||
748 Line(s) of event code
|
||||
410 Unique line(s) of event code
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
402 Line(s) of event code
|
||||
@@ -62,14 +62,14 @@ popupInSel
|
||||
34 Component(s)
|
||||
621 Line(s) of event code
|
||||
297 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
583 Line(s) of event code
|
||||
332 Unique line(s) of event code
|
||||
cardAlarm
|
||||
43 Component(s)
|
||||
500 Line(s) of event code
|
||||
273 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
699 Line(s) of event code
|
||||
354 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
540 Line(s) of event code
|
||||
@@ -90,13 +90,13 @@ cardEntities
|
||||
91 Component(s)
|
||||
1666 Line(s) of event code
|
||||
711 Unique line(s) of event code
|
||||
cardGrid2
|
||||
56 Component(s)
|
||||
744 Line(s) of event code
|
||||
408 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
703 Line(s) of event code
|
||||
356 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
23 Page(s)
|
||||
890 Component(s)
|
||||
11017 Line(s) of event code
|
||||
11029 Line(s) of event code
|
||||
2600 Unique line(s) of event code
|
||||
|
||||
@@ -976,6 +976,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1273,6 +1273,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1253,6 +1253,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1424,6 +1424,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1710,6 +1710,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1741,6 +1741,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -36,8 +36,8 @@ popupNotify
|
||||
172 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
579 Line(s) of event code
|
||||
330 Unique line(s) of event code
|
||||
583 Line(s) of event code
|
||||
332 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
410 Line(s) of event code
|
||||
@@ -62,14 +62,10 @@ cardThermo
|
||||
57 Component(s)
|
||||
540 Line(s) of event code
|
||||
319 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
689 Line(s) of event code
|
||||
382 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
699 Line(s) of event code
|
||||
354 Unique line(s) of event code
|
||||
703 Line(s) of event code
|
||||
356 Unique line(s) of event code
|
||||
popupInSel
|
||||
34 Component(s)
|
||||
621 Line(s) of event code
|
||||
@@ -90,6 +86,10 @@ popupThermo
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
276 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
693 Line(s) of event code
|
||||
384 Unique line(s) of event code
|
||||
cardEntities
|
||||
67 Component(s)
|
||||
1194 Line(s) of event code
|
||||
@@ -98,5 +98,5 @@ cardEntities
|
||||
Total
|
||||
23 Page(s)
|
||||
878 Component(s)
|
||||
10576 Line(s) of event code
|
||||
10588 Line(s) of event code
|
||||
2459 Unique line(s) of event code
|
||||
|
||||
@@ -976,6 +976,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1174,6 +1174,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1253,6 +1253,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -64,3 +64,4 @@ SmartHomeNG: https://github.com/sisamiwe/shng-nspanel-plugin
|
||||
|
||||
OpenHAB: https://github.com/donoo/o2n2l
|
||||
|
||||
NodeRed: https://github.com/laluz742/node-red-contrib-nspanel-lui
|
||||
|
||||
@@ -418,7 +418,7 @@ class LuiPagesGen(object):
|
||||
font = 3
|
||||
elif isinstance(item.font, int):
|
||||
font = item.font
|
||||
icon_id += f'{icon_id}¬{font}'
|
||||
icon_id = f'{icon_id}¬{font}'
|
||||
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
||||
|
||||
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
"comfort": "Komfort",
|
||||
"eco": "Eko",
|
||||
"home": "Doma",
|
||||
"none": "Žiadny",
|
||||
"sleep": "Pohotovostný režim"
|
||||
"none": "Žiadna",
|
||||
"sleep": "Spánok"
|
||||
}
|
||||
},
|
||||
"humidifier": {
|
||||
@@ -3951,4 +3951,4 @@
|
||||
"sidebar_toggle": "Prepínač bočného panela"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,11 +27,14 @@ After a reboot of tasmota your screen will light up with the stock display firmw
|
||||
Go to `Consoles` > `Console` in Tasmota and execute the following command:
|
||||
|
||||
```
|
||||
Backlog UrlFetch https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1
|
||||
Backlog UrlFetch https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; SetOption151 0;Restart 1
|
||||
```
|
||||
|
||||
This will download the autoexec.be file from the repository and restart tasmota.
|
||||
|
||||
Note: The command is also disabling matter to free up memory, as it's most likely not used by any homeassistant users anyway.
|
||||
(Matter could cause memory issues during flashing of the Nextion Screen, but you can still enable it if you need to.)
|
||||
|
||||
## Flash Firmware to Nextion Screen
|
||||
|
||||
Due the limitations of Berry, it's not possible to download the tft file directly from github, so I'm also renting a small server where you can download the file via HTTP.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -109,7 +109,7 @@ class Nextion : Driver
|
||||
log("FLH: Read block",3)
|
||||
while size(self.flash_buff)<self.flash_block_size && self.tcp.connected()
|
||||
if self.tcp.available()>0
|
||||
self.flash_buff += self.tcp.readbytes()
|
||||
self.flash_buff += self.tcp.readbytes(4096)
|
||||
else
|
||||
tasmota.delay(50)
|
||||
log("FLH: Wait for available...",3)
|
||||
@@ -321,7 +321,7 @@ tasmota.add_driver(nextion)
|
||||
|
||||
def get_current_version(cmd, idx, payload, payload_json)
|
||||
import string
|
||||
var version_of_this_script = 8
|
||||
var version_of_this_script = 9
|
||||
var jm = string.format("{\"nlui_driver_version\":\"%s\"}", version_of_this_script)
|
||||
tasmota.publish_result(jm, "RESULT")
|
||||
end
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user