joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
883 stars 191 forks source link

[Help] only showing "Setup successful" if touched instead of configured panels #1238

Closed spitzbirne32 closed 3 months ago

spitzbirne32 commented 3 months ago

PROBLEM DESCRIPTION

Display shows screensaver and its config correctly and directly updates if changes in the app.yaml are being made, however each time the screen is touched it just shows the "setup successful" page instead of the configured panels and entities. image

Checked the FAQ but didn't find anything related.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

NSPanel


- [ ] Provide your apps.yaml:

apps.yaml here:

nspanel-1: module: nspanel-lovelace-ui class: NsPanelLovelaceUIManager config: panelRecvTopic: "tele/tasmota_nspanel_kz/RESULT" panelSendTopic: "cmnd/tasmota_nspanel_kz/CustomSend"

updateMode: "auto-notify"

#dateFormatBabel: d:d

model: eu
sleepTimeout: 20
sleepBrightness:
  - time: "7:00:00"
    value: 10
  - time: "23:00:00"
    value: 10
locale: "de_DE"

screensaver:
  entities:
    - entity: weather.forecast_home
    - entity: sensor.lumi_lumi_weather_temperature_2
      name: Zimmer
    - entity: sensor.aubess_temp3_temperature
      name: Keller

  cards:
    - type: cardEntities
      entities:
        - entity: light.deckenlampe
        - entity: light.schreibtisch
- [ ] Go to Settings>Add-ons>AppDaemon>Log and then, provide the output of the log after restarting the appdaemon container:

Log output here:

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

Add-on version: 0.16.6 You are running the latest version of this add-on. System: Home Assistant OS 12.4 (aarch64 / raspberrypi4-64) Home Assistant Core: 2024.7.3 Home Assistant Supervisor: 2024.06.2

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

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-appdaemon: starting s6-rc: info: service init-appdaemon successfully started s6-rc: info: service appdaemon: starting s6-rc: info: service appdaemon successfully started s6-rc: info: service legacy-services: starting [02:21:41] INFO: Starting AppDaemon... s6-rc: info: service legacy-services successfully started 2024-07-21 02:21:50.064542 INFO AppDaemon: AppDaemon Version 4.4.2 starting 2024-07-21 02:21:50.064889 INFO AppDaemon: Python version is 3.11.9 2024-07-21 02:21:50.065288 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml 2024-07-21 02:21:50.065869 INFO AppDaemon: Added log: AppDaemon 2024-07-21 02:21:50.066451 INFO AppDaemon: Added log: Error 2024-07-21 02:21:50.066781 INFO AppDaemon: Added log: Access 2024-07-21 02:21:50.067213 INFO AppDaemon: Added log: Diag 2024-07-21 02:21:50.387270 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2024-07-21 02:21:50.712541 INFO HASS: HASS Plugin Initializing 2024-07-21 02:21:50.712811 WARNING HASS: ha_url not found in HASS configuration - module not initialized 2024-07-21 02:21:50.713065 INFO HASS: HASS Plugin initialization complete 2024-07-21 02:21:50.713533 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin 2024-07-21 02:21:50.829170 INFO MQTT: MQTT Plugin Initializing 2024-07-21 02:21:50.829481 INFO MQTT: Using 'appdaemon/status' as Will Topic 2024-07-21 02:21:50.829694 INFO MQTT: Using 'appdaemon/status' as Birth Topic 2024-07-21 02:21:50.830640 INFO AppDaemon: HTTP is disabled 2024-07-21 02:21:50.849127 INFO HASS: Connected to Home Assistant 2024.7.3 2024-07-21 02:21:50.875667 INFO MQTT: Connected to Broker at URL core-mosquitto.local.hass.io:1883 2024-07-21 02:21:50.893903 INFO AppDaemon: Got initial state from namespace mqtt 2024-07-21 02:21:50.899619 INFO MQTT: MQTT Plugin initialization complete 2024-07-21 02:21:50.908698 INFO AppDaemon: App 'nspanel-1' added 2024-07-21 02:21:50.911047 INFO AppDaemon: Found 1 active apps 2024-07-21 02:21:50.911761 INFO AppDaemon: Found 0 inactive apps 2024-07-21 02:21:50.912086 INFO AppDaemon: Found 0 global libraries 2024-07-21 02:21:50.912380 INFO AppDaemon: Starting Apps with 1 workers and 1 pins 2024-07-21 02:21:50.984506 INFO HASS: Evaluating startup conditions 2024-07-21 02:21:51.008655 INFO HASS: Startup condition met: hass state=RUNNING 2024-07-21 02:21:51.009841 INFO HASS: All startup conditions met 2024-07-21 02:21:51.080498 INFO AppDaemon: Got initial state from namespace default 2024-07-21 02:21:52.921366 INFO AppDaemon: Scheduler running in realtime 2024-07-21 02:21:52.927998 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/ to module import path 2024-07-21 02:21:52.928986 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui to module import path 2024-07-21 02:21:52.930384 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path 2024-07-21 02:21:52.931628 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path 2024-07-21 02:21:52.932967 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path 2024-07-21 02:21:52.934399 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path 2024-07-21 02:21:52.945757 INFO AppDaemon: Loading App Module: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py 2024-07-21 02:21:53.213675 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring 2024-07-21 02:21:53.214844 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring 2024-07-21 02:21:53.216046 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring 2024-07-21 02:21:53.217260 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring 2024-07-21 02:21:53.218364 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring 2024-07-21 02:21:53.219837 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqtt.py - ignoring 2024-07-21 02:21:53.221128 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring 2024-07-21 02:21:53.222431 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring 2024-07-21 02:21:53.223673 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring 2024-07-21 02:21:53.224831 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/apis.py - ignoring 2024-07-21 02:21:53.226036 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring 2024-07-21 02:21:53.227035 INFO AppDaemon: Loading app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui 2024-07-21 02:21:53.229751 INFO AppDaemon: Calling initialize() for nspanel-1 2024-07-21 02:21:53.321403 INFO nspanel-1: Starting 2024-07-21 02:21:53.345611 INFO nspanel-1: Input config: {'panelRecvTopic': 'tele/tasmota_nspanel_kz/RESULT', 'panelSendTopic': 'cmnd/tasmota_nspanel_kz/CustomSend', 'model': 'eu', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '7:00:00', 'value': 10}, {'time': '23:00:00', 'value': 10}], 'locale': 'de_DE', 'screensaver': {'entities': [{'entity': 'weather.forecast_home'}, {'entity': 'sensor.lumi_lumi_weather_temperature_2', 'name': 'Zimmer'}, {'entity': 'sensor.aubess_temp3_temperature', 'name': 'Keller'}], 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'light.deckenlampe'}, {'entity': 'light.schreibtisch'}]}]}} 2024-07-21 02:21:53.347805 INFO nspanel-1: Loaded config: {'panelRecvTopic': 'tele/tasmota_nspanel_kz/RESULT', 'panelSendTopic': 'cmnd/tasmota_nspanel_kz/CustomSend', 'updateMode': 'auto-notify', 'model': 'eu', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '7:00:00', 'value': 10}, {'time': '23:00:00', 'value': 10}], 'screenBrightness': 100, 'defaultBackgroundColor': 'ha-dark', 'featureExperimentalSliders': False, 'sleepTracking': None, 'sleepTrackingZones': ['not_home', 'off'], 'sleepOverride': None, 'locale': 'de_DE', 'quiet': True, 'timeFormat': '%H:%M', 'dateFormatBabel': 'full', 'dateAdditionalTemplate': '', 'timeAdditionalTemplate': '', 'dateFormat': '%A, %d. %B %Y', 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'iText.', 'name': 'MQTT Config successful', 'icon': 'mdi:check', 'color:': [0, 255, 0]}, {'entity': 'iText.', 'name': 'Continue adding', 'icon': 'mdi:arrow-right-bold'}, {'entity': 'iText.', 'name': 'cards to your', 'icon': 'mdi:card'}, {'entity': 'iText.', 'name': 'apps.yaml', 'icon': 'mdi:cog'}], 'title': 'Setup successful'}], 'screensaver': {'type': 'screensaver', 'entity': 'weather.example', 'weatherUnit': 'celsius', 'forecastSkip': 0, 'weatherOverrideForecast1': None, 'weatherOverrideForecast2': None, 'weatherOverrideForecast3': None, 'weatherOverrideForecast4': None, 'doubleTapToUnlock': False, 'alternativeLayout': False, 'defaultCard': None, 'key': 'screensaver', 'entities': [{'entity': 'weather.forecast_home'}, {'entity': 'sensor.lumi_lumi_weather_temperature_2', 'name': 'Zimmer'}, {'entity': 'sensor.aubess_temp3_temperature', 'name': 'Keller'}], 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'light.deckenlampe'}, {'entity': 'light.schreibtisch'}]}]}, 'hiddenCards': []} 2024-07-21 02:21:53.366479 INFO nspanel-1: gtest123: ['iText.', 'iText.', 'iText.', 'iText.', 'weather.example', 'weather.forecast_home', 'sensor.lumi_lumi_weather_temperature_2', 'sensor.aubess_temp3_temperature'] 2024-07-21 02:21:53.369404 INFO nspanel-1: Registering callbacks for the following items: ['weather.example', 'weather.forecast_home', 'sensor.lumi_lumi_weather_temperature_2', 'sensor.aubess_temp3_temperature'] 2024-07-21 02:21:53.381993 INFO nspanel-1: Started (v4.3.3) 2024-07-21 02:21:53.384227 INFO AppDaemon: App initialization complete 2024-07-21 02:21:54.415765 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"9"}'} 2024-07-21 02:21:54.421740 INFO nspanel-1: Update Pre-Check failed Tasmota Driver Version: 9 Panel Version: None 2024-07-21 02:21:54.430551 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,eu"}'} 2024-07-21 02:21:54.435525 INFO nspanel-1: Received Message from Screen: event,startup,53,eu 2024-07-21 02:21:54.444338 INFO nspanel-1: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-07-21 02:21:54.449473 INFO nspanel-1: Startup Event 2024-07-21 02:21:54.524200 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"9"}'} 2024-07-21 02:21:54.527751 INFO nspanel-1: Update Pre-Check sucessful Tasmota Driver Version: 9 Panel Version: 53 2024-07-21 02:21:55.473445 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,renderCurrentPage"}'} 2024-07-21 02:21:55.477362 INFO nspanel-1: Received Message from Screen: event,renderCurrentPage



### ADDITIONAL INFORMATION

_Add information about your setup here, if any. (For example docker version of AppDaemon instead of the HomeAssistant Add-on)_
Using Home Assistant on a Pi4, NSPanel is currently powered via 5V until its fixed
spitzbirne32 commented 3 months ago

AppDamon Log if screen is touched:

2024-07-21 02:26:11.819661 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,buttonPress2,screensaver,bExit,1"}'}
2024-07-21 02:26:11.823846 INFO nspanel-1: Received Message from Screen: event,buttonPress2,screensaver,bExit,1
2024-07-21 02:26:11.829008 INFO nspanel-1: Button Press Event; entity_id: screensaver; button_type: bExit; value: 1 
2024-07-21 02:26:12.872506 INFO nspanel-1: MQTT callback for: {'topic': 'tele/tasmota_nspanel_kz/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,renderCurrentPage"}'}
2024-07-21 02:26:12.879222 INFO nspanel-1: Received Message from Screen: event,renderCurrentPage
joBr99 commented 3 months ago

cards is on the wrong level, you need to move it to the left

  apps.yaml here:
---
nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/tasmota_nspanel_kz/RESULT"
    panelSendTopic: "cmnd/tasmota_nspanel_kz/CustomSend"
    #updateMode: "auto-notify"
    #dateFormatBabel: d:d

    model: eu
    sleepTimeout: 20
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 10
    locale: "de_DE"

    screensaver:
      entities:
        - entity: weather.forecast_home
        - entity: sensor.lumi_lumi_weather_temperature_2
          name: Zimmer
        - entity: sensor.aubess_temp3_temperature
          name: Keller

    cards:
      - type: cardEntities
        entities:
          - entity: light.deckenlampe
          - entity: light.schreibtisch
spitzbirne32 commented 3 months ago

cards is on the wrong level, you need to move it to the left

  apps.yaml here:
---
nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/tasmota_nspanel_kz/RESULT"
    panelSendTopic: "cmnd/tasmota_nspanel_kz/CustomSend"
    #updateMode: "auto-notify"
    #dateFormatBabel: d:d

    model: eu
    sleepTimeout: 20
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 10
    locale: "de_DE"

    screensaver:
      entities:
        - entity: weather.forecast_home
        - entity: sensor.lumi_lumi_weather_temperature_2
          name: Zimmer
        - entity: sensor.aubess_temp3_temperature
          name: Keller

    cards:
      - type: cardEntities
        entities:
          - entity: light.deckenlampe
          - entity: light.schreibtisch

wow i feel stupid, thanks a lot that worked.