Merge branch 'joBr99:main' into main

This commit is contained in:
Armilar
2022-06-11 09:34:22 +02:00
committed by GitHub
2 changed files with 12 additions and 11 deletions

View File

@@ -176,7 +176,7 @@ You only need to do one **Tasmota** OR **ESPHome**
### Flash Tasmota to your NSPanel ### Flash Tasmota to your NSPanel
You need to connect to your nspanel via serial and flash the [tasmota32-nspanel.bin](https://github.com/tasmota/install/raw/main/firmware/unofficial/tasmota32-nspanel.bin) to your NSPanel. You need to connect to your nspanel via serial and flash tasmtoa [tasmota32-nspanel.factory.bin](https://tasmota.github.io/install/firmware/development/tasmota32-nspanel.factory.bin) to your NSPanel. You can use the Tasmota Web Installer to do so. [Tasmota Web Installer](https://tasmota.github.io/install/)
Make sure to come back to this guide, before uploading the nspanel.be/autoexec.be files. Make sure to come back to this guide, before uploading the nspanel.be/autoexec.be files.
For more deatils see the [NSPanel Page of the Tasmota Template Repository](https://templates.blakadder.com/sonoff_NSPanel.html). For more deatils see the [NSPanel Page of the Tasmota Template Repository](https://templates.blakadder.com/sonoff_NSPanel.html).
@@ -246,6 +246,10 @@ Support for ESPHome is WIP, see this third-party [ESPHome component](https://git
## Configuration ## Configuration
Note this is the documentation of the current development version and might have changed since latest release, so see the documentation of the current release visit:
https://github.com/joBr99/nspanel-lovelace-ui/tree/v2.9.3
### Configuring the MQTT integration in AppDaemon ### Configuring the MQTT integration in AppDaemon
For the app to work you need a working MQTT Configuration in AppDaemon. Please add the configuration of your mqtt server, user and password to your existing `appdaemon.yaml` For the app to work you need a working MQTT Configuration in AppDaemon. Please add the configuration of your mqtt server, user and password to your existing `appdaemon.yaml`
@@ -354,9 +358,11 @@ nspanel-1:
title: Guest Wifi title: Guest Wifi
qrCode: "WIFI:S:test_ssid;T:WPA;P:test_pw;;" qrCode: "WIFI:S:test_ssid;T:WPA;P:test_pw;;"
entities: entities:
- entity: iText.Name.test_ssid - entity: iText.test_ssid
name: Name
icon: mdi:wifi icon: mdi:wifi
- entity: iText.Password.test_pw - entity: iText.test_pw
name: Password
icon: mdi:key icon: mdi:key
``` ```
@@ -768,11 +774,6 @@ Since release 1.1 you can update the berry driver directly from the Tasmota Cons
## FAQ - Frequently Asked Questions ## FAQ - Frequently Asked Questions
### Flashing of the Display Firmware with FlashNextion doesn't work
1. Make sure to use the [tasmota32-nspanel.bin](https://github.com/tasmota/install/raw/main/firmware/unofficial/tasmota32-nspanel.bin) Tasmota build.
2. Make sure to use HTTP and **not HTTPS**
### Waiting for content - This is taking longer than usual on the screen ### Waiting for content - This is taking longer than usual on the screen
Please check your MQTT Topics in your apps.yaml and your mqtt configuration on tasmota. Please check your MQTT Topics in your apps.yaml and your mqtt configuration on tasmota.

View File

@@ -179,10 +179,10 @@ class LuiPagesGen(object):
else: else:
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~" return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~"
if entityType == "iText": if entityType == "iText":
key = entityId.split(".")[1] value = entityId.split(".", 2)[1]
value = entityId.split(".")[2] name = name if name is not None else "conf name missing"
icon_id = get_icon_id(icon) if icon is not None else get_icon_id("alert-circle-outline") icon_id = get_icon_id(icon) if icon is not None else get_icon_id("alert-circle-outline")
return f"~text~{entityId}~{icon_id}~17299~{key}~{value}" return f"~text~{entityId}~{icon_id}~17299~{name}~{value}"
if not self._ha_api.entity_exists(entityId): if not self._ha_api.entity_exists(entityId):
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml" return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml"