Sonoff NSPanel by ITead - Smart Scene Wall Switch based on ESP32 and custom Nextion Touch Screen Panel Display (non-Pro variant)

ok, i flashed, bud screen is bricked :frowning:

hey
The nspanel is stuck on this.
can someone help me?

@ChenH
Please see this:

https://docs.nspanel.pky.eu/faq/#waiting-for-content-this-is-taking-longer-than-usual-on-the-screen

If it’s still not working share the items mentioned in step 4.

@jobraun
Thanks,
checked first three and still nothing.

appdeamon.yaml:

secrets: /config/secrets.yaml
appdaemon:
latitude: 52.0
longitude: 4.0
elevation: 2
time_zone: Europe/Berlin
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt
client_id: “appdaemon”
client_host: 192.168.68.*** ##Pi ip
client_port: 1883
client_user: “"
client_password: "
*”
client_topics: NONE
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:

apps.yaml

nspanel-1:
module: nspanel-lovelace-ui
class: NsPanelLovelaceUIManager
config:
panelRecvTopic: “tele/NSPannel/RESULT”
panelSendTopic: “cmnd/NSPannel/CustomSend”
sleepTimeout: 20
sleepBrightness:
- time: “7:00:00”
value: 10
- time: “23:00:00”
value: 0
locale: “he_xx”
screensaver:
entity: weather.k3ll3r
cards:
- type: cardEntities
entities:
- entity: switch.example_item
- entity: light.example_item
title: Example 1
- type: cardGrid
entities:
- entity: switch.example_item
- entity: light.example_item
title: Example 2

log:

cont-init: info: running /etc/cont-init.d/00-banner.sh

Add-on: AppDaemon
Python Apps and Dashboard using AppDaemon 4.x for Home Assistant

Add-on version: 0.9.0
You are running the latest version of this add-on.
System: Home Assistant OS 8.2 (armv7 / raspberrypi4)
Home Assistant Core: 2022.6.6
Home Assistant Supervisor: 2022.05.3

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/appdaemon.sh
Looking in links: Home Assistant Wheels
Collecting babel
Downloading Babel-2.10.3-py3-none-any.whl (9.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.5/9.5 MB 4.0 MB/s eta 0:00:00
Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3.10/site-packages (from babel) (2021.3)
Installing collected packages: babel
Successfully installed babel-2.10.3
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.10.5 documentation
cont-init: info: /etc/cont-init.d/appdaemon.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun appdaemon (no readiness notification)
s6-rc: info: service legacy-services successfully started
[06:32:52] INFO: Starting AppDaemon…
2022-06-18 05:32:54.626409 INFO AppDaemon: AppDaemon Version 4.2.1 starting
2022-06-18 05:32:54.626998 INFO AppDaemon: Python version is 3.10.4
2022-06-18 05:32:54.627611 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2022-06-18 05:32:54.628204 INFO AppDaemon: Added log: AppDaemon
2022-06-18 05:32:54.628788 INFO AppDaemon: Added log: Error
2022-06-18 05:32:54.629340 INFO AppDaemon: Added log: Access
2022-06-18 05:32:54.630019 INFO AppDaemon: Added log: Diag
2022-06-18 05:32:54.680035 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2022-06-18 05:32:54.763811 INFO HASS: HASS Plugin Initializing
2022-06-18 05:32:54.764374 INFO HASS: HASS Plugin initialization complete
2022-06-18 05:32:54.765092 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2022-06-18 05:32:54.781766 INFO MQTT: MQTT Plugin Initializing
2022-06-18 05:32:54.782320 INFO MQTT: Using ‘appdaemon/status’ as Will Topic
2022-06-18 05:32:54.782840 INFO MQTT: Using ‘appdaemon/status’ as Birth Topic
2022-06-18 05:32:54.784232 INFO AppDaemon: Initializing HTTP
2022-06-18 05:32:54.785197 INFO AppDaemon: Using ‘ws’ for event stream
2022-06-18 05:32:54.794610 INFO AppDaemon: Starting API
2022-06-18 05:32:54.802371 INFO AppDaemon: Starting Admin Interface
2022-06-18 05:32:54.803370 INFO AppDaemon: Starting Dashboards
2022-06-18 05:32:54.853622 INFO HASS: Connected to Home Assistant 2022.6.6
2022-06-18 05:32:54.873019 INFO MQTT: Connected to Broker at URL 192.168.68.159:1883
2022-06-18 05:32:54.918595 INFO AppDaemon: Got initial state from namespace mqtt
2022-06-18 05:32:54.919641 INFO MQTT: MQTT Plugin initialization complete
2022-06-18 05:32:54.926776 INFO AppDaemon: App ‘nspanel-1’ added
2022-06-18 05:32:54.929316 INFO AppDaemon: Found 1 total apps
2022-06-18 05:32:54.930821 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2022-06-18 05:32:54.934034 INFO AppDaemon: Running on port 5050
2022-06-18 05:32:55.150099 INFO HASS: Evaluating startup conditions
2022-06-18 05:32:55.184690 INFO HASS: Startup condition met: hass state=RUNNING
2022-06-18 05:32:55.185861 INFO HASS: All startup conditions met
2022-06-18 05:32:55.286441 INFO AppDaemon: Got initial state from namespace default
2022-06-18 05:32:56.956394 INFO AppDaemon: Scheduler running in realtime
2022-06-18 05:32:56.966408 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2022-06-18 05:32:56.967891 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui to module import path
2022-06-18 05:32:56.969119 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path
2022-06-18 05:32:56.971889 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path
2022-06-18 05:32:56.973590 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path
2022-06-18 05:32:56.975290 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path
2022-06-18 05:32:57.000972 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring
2022-06-18 05:32:57.003290 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py
2022-06-18 05:32:57.097150 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring
2022-06-18 05:32:57.099487 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring
2022-06-18 05:32:57.101745 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring
2022-06-18 05:32:57.104533 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring
2022-06-18 05:32:57.107168 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring
2022-06-18 05:32:57.110165 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring
2022-06-18 05:32:57.112759 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring
2022-06-18 05:32:57.115950 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring
2022-06-18 05:32:57.118310 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring
2022-06-18 05:32:57.121337 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqttListener.py - ignoring
2022-06-18 05:32:57.123365 INFO AppDaemon: Initializing app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui
2022-06-18 05:32:57.353103 INFO nspanel-1: Starting
2022-06-18 05:32:57.378463 INFO nspanel-1: Input config: {‘panelRecvTopic’: ‘tele/NSPannel/RESULT’, ‘panelSendTopic’: ‘cmnd/NSPannel/CustomSend’, ‘sleepTimeout’: 20, ‘sleepBrightness’: [{‘time’: ‘7:00:00’, ‘value’: 10}, {‘time’: ‘23:00:00’, ‘value’: 0}], ‘locale’: ‘he_xx’, ‘screensaver’: {‘entity’: ‘weather.k3ll3r’}, ‘cards’: [{‘type’: ‘cardEntities’, ‘entities’: [{‘entity’: ‘switch.example_item’}, {‘entity’: ‘light.example_item’}], ‘title’: ‘Example 1’}, {‘type’: ‘cardGrid’, ‘entities’: [{‘entity’: ‘switch.example_item’}, {‘entity’: ‘light.example_item’}], ‘title’: ‘Example 2’}]}
2022-06-18 05:32:57.382295 INFO nspanel-1: Loaded config: {‘panelRecvTopic’: ‘tele/NSPannel/RESULT’, ‘panelSendTopic’: ‘cmnd/NSPannel/CustomSend’, ‘updateMode’: ‘auto-notify’, ‘model’: ‘eu’, ‘sleepTimeout’: 20, ‘sleepBrightness’: [{‘time’: ‘7:00:00’, ‘value’: 10}, {‘time’: ‘23:00:00’, ‘value’: 0}], ‘screenBrightness’: 100, ‘sleepTracking’: None, ‘sleepOverride’: None, ‘locale’: ‘he_xx’, ‘timeFormat’: ‘%H:%M’, ‘dateFormatBabel’: ‘full’, ‘dateAdditionalTemplate’: ‘’, ‘timeAdditionalTemplate’: ‘’, ‘dateFormat’: ‘%A, %d. %B %Y’, ‘cards’: [{‘type’: ‘cardEntities’, ‘entities’: [{‘entity’: ‘switch.example_item’}, {‘entity’: ‘light.example_item’}], ‘title’: ‘Example 1’}, {‘type’: ‘cardGrid’, ‘entities’: [{‘entity’: ‘switch.example_item’}, {‘entity’: ‘light.example_item’}], ‘title’: ‘Example 2’}], ‘screensaver’: {‘type’: ‘screensaver’, ‘entity’: ‘weather.k3ll3r’, ‘weatherUnit’: ‘celsius’, ‘forecastSkip’: 0, ‘weatherOverrideForecast1’: None, ‘weatherOverrideForecast2’: None, ‘weatherOverrideForecast3’: None, ‘weatherOverrideForecast4’: None, ‘doubleTapToUnlock’: False, ‘alternativeLayout’: False, ‘defaultCard’: None, ‘key’: ‘screensaver’}, ‘hiddenCards’: []}
2022-06-18 05:32:57.395082 INFO nspanel-1: Sending MQTT Message: pageType~pageStartup
2022-06-18 05:32:57.410530 INFO nspanel-1: Registering callbacks for the following items: [‘switch.example_item’, ‘light.example_item’, ‘switch.example_item’, ‘light.example_item’, ‘weather.k3ll3r’]
2022-06-18 05:32:57.429029 INFO nspanel-1: Current time 05:32:57.424826
2022-06-18 05:32:57.434893 INFO nspanel-1: Setting dim value to {‘time’: ‘23:00:00’, ‘value’: 0}
2022-06-18 05:32:57.439398 INFO nspanel-1: Current time 05:32:57.436472
2022-06-18 05:32:57.458795 INFO nspanel-1: Started
2022-06-18 05:32:57.462762 INFO AppDaemon: App initialization complete
2022-06-18 05:33:00.084521 INFO nspanel-1: Sending MQTT Message: time~06:33~

You have changed the Full Topic in your tasmota configuration. This will result in completely different recv and send topics. Change the Full Topic in Tasmota MQTT Config back to %prefix%/%topic%/ or configure the correct channels in apps.yaml

@jobraun
change to that:

restart the appdeamon container,

still “Waiting for content”

there is something (probably simple…) to do to make it work

Yes, now you’ve also changed your topic this needs to be the same and it’s case sensitive.

For your newest tasmota screenshot it needs to be:

panelRecvTopic: "tele/nspannel/RESULT"
panelSendTopic: "cmnd/nspannel/CustomSend"

@jobraun
I remember to change it.

config:
panelRecvTopic: “tele/nspannel/RESULT”
panelSendTopic: “cmnd/nspannel/CustomSend”

I’ve notice that the template hasn’t change although I changed it, it remains:
{“NAME”:“NSPanel”,“GPIO”:[0,0,0,0,3872,0,0,0,0,0,32,0,0,0,0,225,0,480,224,1,0,0,0,33,0,0,0,0,0,0,0,0,0,0,4736,0],“FLAG”:0,“BASE”:1}

when it should be:
{“NAME”:“NSPanel”,“GPIO”:[0,0,0,0,3872,0,0,0,0,0,32,0,0,0,0,225,0,480,224,1,0,0,0,33,0,0,0,0,0,0,0,0,0,0,4736,0],“FLAG”:0,“BASE”:1,“CMND”:“ADCParam 2,11200,10000,3950 | Sleep 0 | BuzzerPWM 1”}

maybe I should start all over,
How can I wipe out tasmota and start again?

@jobraun
I think I found the problem

In apps.yaml I wrote:
locale: “he_xx”

changed it to:
locale: “en_CA”

and nspannel starts to show the screensaver

you can change it to he_IL this should work

Thank you for your help!

Please let me know if Hebrew language works on the panel :slight_smile:

It shows from left to right when it shoulb be from right to left

Yeah I expected this, what do I need to do to fix this?
Is it enough to reverse the order of all chars in the Hebrew Translations?

“טמפרטורת הצבע”

vs.

“עבצה תרוטרפמט”

yeap,
this is the correct one:
“טמפרטורת הצבע”

would you tell me if it is possible to run this adon on homeassistant on ubuntu?

hmm, this was the one from the current translation files … how about the following screenshot? If the second one is correct I know what to do.

image

you can run appdaemon as a seperate docker container

!thgir wohs ot ti teg ot esrever ni gnihtyreve tup ot gniog era uoy em llet t’noD !on hO

the second one is correct.

okay, apply this change to your localization.py, restart appdaemon and tell me what happens

Hi

I would love to test the EU version!