mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8cc170c0c | ||
|
|
94d0d176e5 | ||
|
|
c9222a9484 | ||
|
|
5d02de6b6d | ||
|
|
0c3bcf07c3 | ||
|
|
9ed8bfc702 | ||
|
|
b3d9883b19 | ||
|
|
a0af621e7d | ||
|
|
2812dd302c | ||
|
|
b2b945c6ed |
@@ -6,6 +6,24 @@ Messages to the Panel can be send through the Command `CustomSend`, which is imp
|
||||
You can issue this command through MQTT by sending messages to the `cmnd/XXX/CustomSend` Topic.
|
||||
Messages from the Panel are send to the `tele/XXX/RESULT` Topic, encoded in json `{"CustomRecv":"message_from_screen"}`
|
||||
|
||||
|
||||
# Table of contents
|
||||
|
||||
- [Startup](#startup)
|
||||
- [Some preperation before we are acually navigating away:](#some-preperation-before-we-are-acually-navigating-away)
|
||||
- [Navigate from the startup page to the screensaver, by sending this command to the CustomSend Topic.](#navigate-from-the-startup-page-to-the-screensaver-by-sending-this-command-to-the-customsend-topic)
|
||||
- [Exit Screensaver](#exit-screensaver)
|
||||
- [Messages to Nextion Display](#messages-to-nextion-display)
|
||||
- [General Commands, implemented on all pages](#general-commands-implemented-on-all-pages)
|
||||
- [screensaver page](#screensaver-page)
|
||||
- [cardEntities Page](#cardentities-page)
|
||||
- [cardGrid Page](#cardgrid-page)
|
||||
- [cardMedia](#cardmedia)
|
||||
- [cardThermo](#cardthermo)
|
||||
- [cardAlarm](#cardalarm)
|
||||
- [cardQR](#cardqr)
|
||||
- [cardPower](#cardpower)
|
||||
|
||||
## Startup
|
||||
|
||||
On startup the panel will send `{"CustomRecv":"event,startup,39,eu"}` every few seconds.
|
||||
@@ -94,9 +112,6 @@ change the page type:
|
||||
|
||||
### screensaver page
|
||||
|
||||
Example default layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C`
|
||||
Example alternative layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C~~~F~21130~~23.6C`
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
+++ /dev/fd/62 2023-05-20 14:50:34.059646337 +0000
|
||||
+++ /dev/fd/62 2023-05-21 07:42:40.316901599 +0000
|
||||
+I/n2t-out/Program.s.txt
|
||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||
+1 +10,11 @@
|
||||
|
||||
@@ -26,8 +26,8 @@ NsPanel needs to be flashed with Tasmota (or through a 3rd-party Component with
|
||||
|
||||
## Features
|
||||
|
||||
- Entities Page with support for cover, switch, input_boolean, binary_sensor, sensor, button, number, scenes, script, input_button and light, input_text (read-only), lock, fan and automation
|
||||
- Grid Page with support for cover, switch, input_boolean, button, scenes, light, lock and automation
|
||||
- Entities Page with support for cover, switch, input_boolean, binary_sensor, sensor, button, number, scenes, script, input_button and light, input_text (read-only), lock, fan, timer and automation
|
||||
- Grid Page with support for cover, switch, input_boolean, button, scenes, light, lock, timer and automation
|
||||
- Detail Pages for Lights (Brightness, Temperature and Color of the Light) and Covers (Position)
|
||||
- Thermostat Page
|
||||
- Media Player Card
|
||||
@@ -42,11 +42,11 @@ To control the panel and update it with content from HomeAssistant, there is an
|
||||
|
||||
See the following picture to get an idea of the look of this firmware for NSPanel.
|
||||
|
||||

|
||||

|
||||
|
||||
Some (not all) screenshots from the US Portrait Version:
|
||||
|
||||

|
||||

|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
@@ -145,8 +145,8 @@ class LuiController(object):
|
||||
|
||||
items = self._config.get_all_entity_names()
|
||||
apis.ha_api.log(f"gtest123: {items}")
|
||||
prefixes = ("navigate.")
|
||||
items = [x for x in items if not x.startswith(prefixes)]
|
||||
prefixes = ("navigate.", "delete", "iText")
|
||||
items = [x for x in items if not (x is None or x.startswith(prefixes))]
|
||||
apis.ha_api.log(f"Registering callbacks for the following items: {items}")
|
||||
for item in items:
|
||||
if apis.ha_api.entity_exists(item):
|
||||
|
||||
@@ -178,7 +178,10 @@ class LuiPagesGen(object):
|
||||
name = apis.ha_api.render_template(item.nameOverride)
|
||||
|
||||
# type of the item is the string before the "." in the entityId
|
||||
if entityId is not None:
|
||||
entityType = entityId.split(".")[0]
|
||||
else
|
||||
entityType = "delete"
|
||||
|
||||
apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
||||
if model == "us-l":
|
||||
desired_display_firmware_url = cfg._config.get("displayURL-US-L", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-l-{version}.tft")
|
||||
elif model == "us-p":
|
||||
desired_display_firmware_url = cfg._config.get("displayURL-US-L", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-p-{version}.tft")
|
||||
desired_display_firmware_url = cfg._config.get("displayURL-US-P", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-p-{version}.tft")
|
||||
else:
|
||||
desired_display_firmware_url = cfg._config.get("displayURL-EU", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-{version}.tft")
|
||||
desired_tasmota_driver_url = cfg._config.get("berryURL", "https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be")
|
||||
|
||||
BIN
docs/img/popupLight.gif
Normal file
BIN
docs/img/popupLight.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 340 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 346 KiB |
Reference in New Issue
Block a user