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

Hi Claire, yes in Oz, and no - just using the standard met.no forecast sensor that is installed by default by HASS.

I’m having the same issue. The main weather shows fine but none of the forecast. Hope that API gets updated soon.

I have this resolved now, the idea - smile slowly - first ensure your sensor is working. Note I changed the template to update each minute as seen below, will return this to hour later. So I can see changes, I commented out # forecast, and set the state, temperature, temperature_unit to a string.

#NSPANEL MOD for weather
- trigger:
    - platform: time_pattern
      minutes: /1
  action:
    - service: weather.get_forecasts
      data:
        type: daily
      target:
        entity_id: weather.bom                                         # change to your weather entity
      response_variable: daily
  sensor:
    - name: Weather Forecast Daily
      unique_id: weather_forecast_daily
      state: "{{states('weather.bom')}}"                                         # change to your weather entity in this line
      attributes:
        temperature: "{{state_attr('weather.bom', 'temperature')}}"              # change to your weather entity
        temperature_unit: "{{state_attr('weather.bom', 'temperature_unit')}}"      # change to your weather entity
        forecast: "{{ daily['weather.bom'].forecast }}"                             # change to your weather entity

When I could see the Entity in Dev Tools >> States as ‘sensor.weather_forecast_daily’ I then enabled states and Reloaded All YAML, when this showed correctly I enabled temperature and so on.

If you go to his Github ([BUG] HA 2024.4 - cannot display forecast properly · Issue #1209 · joBr99/nspanel-lovelace-ui · GitHub) you will see what the sensor should look like.

Then add the sensor to the panel and the world should be beautiful.

key: ssKey
statusIcon1:
  entity: switch.study_nsp_switch1
  altFont: True
  icon:
    "on": mdi:menu-up-outline
    "off": "text:"
statusIcon2:
  entity: switch.study_nsp_switch2
  altFont: True
  icon:
    "on": mdi:menu-up-outline
    "off": "text:"
entities:
  - entity: weather.bom
  - entity: sensor.weather_forecast_daily
    type: 0
  - entity: sensor.weather_forecast_daily
    type: 1
  - entity: sensor.weather_forecast_daily
    type: 2
  - entity: sensor.weather_forecast_daily
    type: 3
  - entity: sensor.study_nsp_temperature
    icon: mdi:home-thermometer-outline
alternativeLayout: false
defaultCard: navigate.studyKey
theme: !include /homeassistant/appdaemon/apps/nsp_theme.yaml
1 Like

OK - got it working on my end … and totally my fault …

I forgot to do the required directory change and update of Appdaemon stuff …

Once I did the below … all returned to normal

follow instructions in here

Thanks for the confidence to keep troubleshooting. My issue was also my fault. I already had a template entry in my config file and had double entries. Somehow I missed the error in studio code the first time around. DOH.

Hi,

there is now available 12VDC backplate for NSPanel: Smartavan 12VDC backplate for Sonoff NSPanel

2 Likes

Hello,

anyone here can help me out please ?

when adding this line: app_dir: /homeassistant/appdaemon/apps
to the appdaemon.yaml my nspanel stops working.
yes the nspanel files are in this folder but it doesn’t work.
Getting all kind of weird appdaemon errors like:

2024-04-21 18:52:15.802634 WARNING nspanel-1: Unexpected error running initialize() for nspanel-1
2024-04-21 18:52:15.803151 WARNING nspanel-1: ------------------------------------------------------------
2024-04-21 18:52:15.808501 WARNING nspanel-1: Traceback (most recent call last):
File “/usr/lib/python3.11/site-packages/appdaemon/app_management.py”, line 162, in initialize_app
await utils.run_in_executor(self, init)
File “/usr/lib/python3.11/site-packages/appdaemon/utils.py”, line 304, in run_in_executor
response = future.result()
^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py”, line 18, in initialize
apis.ha_api = self.get_plugin_api(“HASS”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/appdaemon/utils.py”, line 231, in inner_sync_wrapper
f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/appdaemon/utils.py”, line 313, in run_coroutine_threadsafe
result = future.result(self.AD.internal_function_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
File “/usr/lib/python3.11/site-packages/appdaemon/adbase.py”, line 115, in get_plugin_api
return await self.AD.plugins.get_plugin_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/appdaemon/plugin_management.py”, line 404, in get_plugin_api
mod = import(module_name, globals(), locals(), [module_name], 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/homeassistant/appdaemon/apps/omnikdatalogger/omnik/plugin_localproxy/hassapi.py”, line 6, in
class HASSAPI(LocalProxyPlugin):
File “/homeassistant/appdaemon/apps/omnikdatalogger/omnik/plugin_localproxy/init.py”, line 7, in init
cls.register(cls) # Called when a plugin class is imported
^^^^^^^^^^^^^^^^^

Some guys at NSPanel HA Blueprint figured it out, works with any esphome config :slight_smile:

16MB PSram can now be pretty useful for BLE and stuff.

esp32:
  framework:
    sdkconfig_options:
      CONFIG_D0WD_PSRAM_CLK_IO: "5"
      CONFIG_D0WD_PSRAM_CS_IO: "18"

psram:

Also still preferring and using the stock UI, now it has a black wallpaper option as well to use.

1 Like

A 1-color background would be quite easy to implement. And even if we want 3 or 4 different colors. :wink:

By the way, I’m one of those guys who set the PSRAM… Finally. :wink:

1 Like

Hi all,

I’ve installed the NSPanel in my room and set it up as a termostat. Now I see, that turning heating on (relais 1 or 2) increases the sensor temperature, without the room temperature is changed (device is getting hotter?).
After heating is off the temperature normalizes again (device cools down).

Is there anything I can do about it? I don’t want to use external sensors, as this may not be reliable…

Wow, this is embarrassing… Right after this post I got very busy at work so I completely forgot about this.
I used an RCWL-051 first, but that is not very reliable. I am now in the process of replacing all my IR and ‘radar’ motion sensors with HLK-LD2410 sensors. Very easy to use and setup through Bluetooth. Once setup you only need the output pin. Detects both motion and presence, with individual sensitivity. And also much smaller than the previous used devices.

Help! In order to install xposed installer and framework I needed to remove some apps from system/apps via adb shell. I think I inadvertently deleted the virtual keyboard app? At least, I now have everything running however going into any text field no virtual keyboard exists. Under settings, system, languages and input, virtual keyboard nothing shows in the list.

Anyone know how to get it back without going through the whole recovery process again?

EDIT: NVM, managed to download and install gboard APK