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

Thx a lot for your fast response/ I will give it a try this evening. I let you know the results asap

Donā€™t expect it to be easy :slight_smile:

Hi, @jobraun i am almost there.

i get this on the nspanel:

Waiting for contentā€¦
This is taking longer than usualā€¦

what have i missed?

check your appdaemon log, could be a wrong mqtt config in appdaemon, on tasmota or wrong mqtt topics in the apps.yaml

i get this on appdamon log:

2022-04-29 09:07:45.576366 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2022-04-29 09:07:45.587722 INFO MQTT: MQTT Plugin Initializing
2022-04-29 09:07:45.588089 INFO MQTT: Using ā€˜appdaemon/statusā€™ as Will Topic
2022-04-29 09:07:45.588336 INFO MQTT: Using ā€˜appdaemon/statusā€™ as Birth Topic
2022-04-29 09:07:45.589190 INFO AppDaemon: Initializing HTTP
2022-04-29 09:07:45.589910 INFO AppDaemon: Using ā€˜wsā€™ for event stream
2022-04-29 09:07:45.595882 INFO AppDaemon: Starting API
2022-04-29 09:07:45.601076 INFO AppDaemon: Starting Admin Interface
2022-04-29 09:07:45.601634 INFO AppDaemon: Starting Dashboards
2022-04-29 09:07:45.674097 INFO HASS: Connected to Home Assistant 2022.4.7
2022-04-29 09:07:45.737400 INFO MQTT: Connected to Broker at URL 192.168.101.109:1883
2022-04-29 09:07:45.773476 INFO AppDaemon: Got initial state from namespace mqtt
2022-04-29 09:07:45.775216 INFO MQTT: MQTT Plugin initialization complete
2022-04-29 09:07:45.777885 INFO AppDaemon: App ā€˜nspanel-1ā€™ added
2022-04-29 09:07:45.780709 INFO AppDaemon: Found 1 total apps
2022-04-29 09:07:45.782027 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2022-04-29 09:07:45.783918 INFO AppDaemon: Running on port 5050
2022-04-29 09:07:45.873932 INFO HASS: Evaluating startup conditions
2022-04-29 09:07:45.888349 INFO HASS: Startup condition met: hass state=RUNNING
2022-04-29 09:07:45.888929 INFO HASS: All startup conditions met
2022-04-29 09:07:45.986567 INFO AppDaemon: Got initial state from namespace default
2022-04-29 09:07:46.243988 INFO AppDaemon: New client Admin Client connected
2022-04-29 09:07:46.462905 INFO AppDaemon: New client Admin Client connected
2022-04-29 09:07:47.796679 INFO AppDaemon: Scheduler running in realtime
2022-04-29 09:07:47.823118 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2022-04-29 09:07:47.824290 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui to module import path
2022-04-29 09:07:47.825232 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path
2022-04-29 09:07:47.851626 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring
2022-04-29 09:07:47.854688 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py - ignoring
2022-04-29 09:07:47.858892 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring
2022-04-29 09:07:47.862255 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring
2022-04-29 09:07:47.866408 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring
2022-04-29 09:07:47.871676 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring
2022-04-29 09:07:47.875724 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqttListener.py - ignoring
2022-04-29 09:07:47.879126 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring
2022-04-29 09:07:47.883338 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring
2022-04-29 09:07:47.886366 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring
2022-04-29 09:07:47.889725 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring
2022-04-29 09:07:47.894031 INFO AppDaemon: App initialization complete
2022-04-29 09:07:50.239518 INFO AppDaemon: New client Admin Client connected
2022-04-29 09:08:55.922922 INFO AppDaemon: New client Admin Client connected
2022-04-29 09:17:11.433928 INFO AppDaemon: Client disconnection from Admin Client
2022-04-29 09:42:55.344274 INFO AppDaemon: New client Admin Client connected
2022-04-29 09:42:56.822032 INFO AppDaemon: Client disconnection from Admin Client
2022-04-29 09:44:18.699601 INFO AppDaemon: Reading config
2022-04-29 09:44:18.724514 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2022-04-29 09:44:18.725266 INFO AppDaemon: App ā€˜nspanel-1ā€™ changed
2022-04-29 09:44:18.728958 INFO AppDaemon: Found 1 total apps
2022-04-29 09:44:18.765362 INFO AppDaemon: Terminating nspanel-1
2022-04-29 09:44:18.771035 INFO AppDaemon: Initializing app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-406
2022-04-29 09:44:18.772333 WARNING AppDaemon: Unable to find module module nspanel-406 - ā€˜nspanel-1ā€™ is not initialized

mqtt initialisation looks fine, please add your apps.yaml and the mqtt config page from tasmota

Hello,

---
nspanel-1:
  module: nspanel-406
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/NS-Panel-406/RESULT"
    panelSendTopic: "cmnd/NS-Panel-406/CustomSend"
    updateMode: "auto-notify"
    sleepTimeout: 20
    #sleepBrightness: 10
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 0
    locale: "en_GB" # used for translations in translations.py and for localized date if babel python package is installed
    screensaver:
      entity: weather.openweathermap
    cards:
      - type: cardEntities
        entities:
          - entity: switch.phota_salas
            name: NameOverride
            icon: lightbulb
          - entity: light.led_bar
          - entity: switch.phota_salas

Hi,

I have all flashed but the display keeps waiting for content. any idea what goes wrong? @jobraun

Here is de appdaemon.log

2022-04-30 19:38:36.266143 INFO HASS: HASS Plugin initialization complete
2022-04-30 19:38:36.267472 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2022-04-30 19:38:36.303008 INFO MQTT: MQTT Plugin Initializing
2022-04-30 19:38:36.304137 INFO MQTT: Using 'appdaemon/status' as Will Topic
2022-04-30 19:38:36.305097 INFO MQTT: Using 'appdaemon/status' as Birth Topic
2022-04-30 19:38:36.308075 INFO AppDaemon: Initializing HTTP
2022-04-30 19:38:36.310172 INFO AppDaemon: Using 'ws' for event stream
2022-04-30 19:38:36.329024 INFO AppDaemon: Starting API
2022-04-30 19:38:36.347118 INFO AppDaemon: Starting Admin Interface
2022-04-30 19:38:36.349238 INFO AppDaemon: Starting Dashboards
2022-04-30 19:38:36.403609 INFO HASS: Connected to Home Assistant 2022.4.7
2022-04-30 19:38:36.422168 INFO MQTT: Connected to Broker at URL 192.168.180.5:1883
2022-04-30 19:38:36.475944 INFO AppDaemon: Got initial state from namespace mqtt
2022-04-30 19:38:36.477788 INFO MQTT: MQTT Plugin initialization complete
2022-04-30 19:38:36.486646 INFO AppDaemon: App 'nspanel-1' added
2022-04-30 19:38:36.490644 INFO AppDaemon: Found 1 total apps
2022-04-30 19:38:36.493011 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2022-04-30 19:38:36.496851 INFO AppDaemon: Running on port 5050
2022-04-30 19:38:36.758376 INFO HASS: Evaluating startup conditions
2022-04-30 19:38:36.798804 INFO HASS: Startup condition met: hass state=RUNNING
2022-04-30 19:38:36.800786 INFO HASS: All startup conditions met
2022-04-30 19:38:36.956952 INFO AppDaemon: Got initial state from namespace default
2022-04-30 19:38:38.515300 INFO AppDaemon: Scheduler running in realtime
2022-04-30 19:38:38.524972 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2022-04-30 19:38:38.530528 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring
2022-04-30 19:38:38.534108 INFO AppDaemon: App initialization complete
2022-04-30 19:38:40.549188 INFO AppDaemon: New client Admin Client connected
2022-04-30 19:51:29.412537 INFO AppDaemon: Reading config
2022-04-30 19:51:29.451226 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2022-04-30 19:51:29.452605 INFO AppDaemon: App 'nspanel-1' changed
2022-04-30 19:51:29.457049 INFO AppDaemon: Found 1 total apps
2022-04-30 19:51:29.470555 INFO AppDaemon: Terminating nspanel-1
2022-04-30 19:51:29.474557 INFO AppDaemon: Initializing app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui
2022-04-30 19:51:29.476065 WARNING AppDaemon: Unable to find module module nspanel-lovelace-ui - 'nspanel-1' is not initialized
2022-04-30 19:51:29.479063 WARNING AppDaemon: Unable to find module nspanel-1 - initialize() skipped

apps.yaml

nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/nspanel/RESULT"
    panelSendTopic: "cmnd/nspanel/CustomSend"
    updateMode: "auto-notify"
    sleepTimeout: 20
    #sleepBrightness: 10
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 0
    locale: "nl_NL" # used for translations in translations.py and for localized date if babel python package is installed
    screensaver:
      entity: weather.weerstation
    cards:
      - type: cardEntities
        entities:
          - entity: switch.buitenlamp
            name: Buitenverlcihting
            icon: lightbulb
          - entity: switch.woonkamerlamp

appdeamon.yaml


secrets: /config/secrets.yaml
appdaemon:
latitude: 52.379189
longitude: 4.899431
elevation: 2
time_zone: Europe/Amsterdam
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt
client_id: ā€œappdaemonā€
client_host: 192.168.180.5
client_port: 1883
client_user: ā€œtasmotaā€
client_password: ā€œsecretā€
client_topics: NONE
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:

Found it. also have copy also the nspanel-lovelace-ui folder form github to apps folder

that a restart and worked

2 Likes

is it looking like this:?

image

yep, and the files in there.

i think i have the same settings but is not workingā€¦

@papakigr donā€™t change the module it has to be

module: nspanel-lovelace-ui

Installing the app via hacs is exactly doing that, you can just install ist with hacs, no need to upload the files manually

That did the job!

Rhoots, I am very curious what you did/how you got your screen to upload. I have been trying for almost 4 days now but always get the same problem with the timouts and then available 1ā€¦18 returning 0x00. Iā€™d love to know how you fixed it!

Thanks!

@jobraun it rocks!!!

Works fluently!

1 Like

I have an nspanel and have flashed esphome to it but havenā€™t really done anything else with it. I was wondering would it run on 12v? I have a place I could mount it but would only have a 12v power supply available.

Thanks

Craig

@jobraun amazing work - your UI looks and works well thank you. Just a quick question, does your method support multiple nspanels? Would they all have the same UI or can I specify different layouts for different panels?

yes, just create multiple panels in apps.yaml

nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/recvtopic1/RESULT"
    ...

nspanel-2:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/recvtopic2/RESULT"
    ...

1 Like