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
854 stars 187 forks source link

[Help] Waiting for Content #1215

Closed LOGOLEX closed 2 months ago

LOGOLEX commented 2 months ago

PROBLEM DESCRIPTION

I'm seeing the waiting for content message on the Panel and I'm unable to find the configuration issue. Tasmota does not seem to get any commands for configuration. mqtt discovery shows a topic for the panel but nothing is received by the panel itself.

[X] I've double checked each step explained in the FAQ:

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

REQUESTED INFORMATION

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

Screenshot 2024-04-17 065519


- [X] Provide your apps.yaml:

apps.yaml here: `--- NSPanel_Schlafzimmer: module: nspanel-lovelace-ui class: NsPanelLovelaceUIManager config: panelRecvTopic: "tele/nspanel_schlafzimmer/RESULT" panelSendTopic: "tele/nspanel_schlafzimmer/CustomSend" model: eu sleepTimeout: 20 sleepBrightness:

- [X] Go to Settings>Add-ons>AppDaemon>Log and then, provide the output of the log after restarting the appdaemon container:

Log output here:

`----------------------------------------------------------- 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 Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Collecting babel Downloading Babel-2.14.0-py3-none-any.whl.metadata (1.6 kB) Downloading Babel-2.14.0-py3-none-any.whl (11.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 MB 13.0 MB/s eta 0:00:00 Installing collected packages: babel Successfully installed babel-2.14.0 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: https://pip.pypa.io/warnings/venv 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 [07:10:57] INFO: Starting AppDaemon... s6-rc: info: service legacy-services successfully started 2024-04-17 07:11:01.807738 INFO AppDaemon: AppDaemon Version 4.4.2 starting 2024-04-17 07:11:01.807993 INFO AppDaemon: Python version is 3.11.6 2024-04-17 07:11:01.808313 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml 2024-04-17 07:11:01.808490 INFO AppDaemon: Added log: AppDaemon 2024-04-17 07:11:01.808664 INFO AppDaemon: Added log: Error 2024-04-17 07:11:01.808797 INFO AppDaemon: Added log: Access 2024-04-17 07:11:01.808932 INFO AppDaemon: Added log: Diag 2024-04-17 07:11:02.105644 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2024-04-17 07:11:02.387249 INFO HASS: HASS Plugin Initializing 2024-04-17 07:11:02.387493 WARNING HASS: ha_url not found in HASS configuration - module not initialized 2024-04-17 07:11:02.387729 INFO HASS: HASS Plugin initialization complete 2024-04-17 07:11:02.388068 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin 2024-04-17 07:11:02.491717 INFO MQTT: MQTT Plugin Initializing 2024-04-17 07:11:02.491981 INFO MQTT: Using 'appdaemon/status' as Will Topic 2024-04-17 07:11:02.492970 INFO MQTT: Using 'appdaemon/status' as Birth Topic 2024-04-17 07:11:02.493725 INFO AppDaemon: Initializing HTTP 2024-04-17 07:11:02.494389 INFO AppDaemon: Using 'ws' for event stream 2024-04-17 07:11:02.499469 INFO AppDaemon: Starting API 2024-04-17 07:11:02.502418 INFO AppDaemon: Starting Admin Interface 2024-04-17 07:11:02.502846 INFO AppDaemon: Starting Dashboards 2024-04-17 07:11:02.523137 INFO HASS: Connected to Home Assistant 2024.4.3 2024-04-17 07:11:02.548595 INFO MQTT: Connected to Broker at URL 192.168.2.27:1883 2024-04-17 07:11:02.562411 INFO AppDaemon: Got initial state from namespace mqtt 2024-04-17 07:11:02.563133 INFO MQTT: MQTT Plugin initialization complete 2024-04-17 07:11:02.578234 INFO AppDaemon: App 'NSPanel_Schlafzimmer' added 2024-04-17 07:11:02.579114 INFO AppDaemon: Found 1 active apps 2024-04-17 07:11:02.579319 INFO AppDaemon: Found 0 inactive apps 2024-04-17 07:11:02.579510 INFO AppDaemon: Found 0 global libraries 2024-04-17 07:11:02.579723 INFO AppDaemon: Starting Apps with 1 workers and 1 pins 2024-04-17 07:11:02.583293 INFO AppDaemon: Running on port 5050 2024-04-17 07:11:02.628520 INFO HASS: Evaluating startup conditions 2024-04-17 07:11:02.654127 INFO HASS: Startup condition met: hass state=RUNNING 2024-04-17 07:11:02.654576 INFO HASS: All startup conditions met 2024-04-17 07:11:02.694019 INFO AppDaemon: Got initial state from namespace default 2024-04-17 07:11:04.594943 INFO AppDaemon: Scheduler running in realtime 2024-04-17 07:11:04.601073 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/ to module import path 2024-04-17 07:11:04.601807 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui to module import path 2024-04-17 07:11:04.602765 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path 2024-04-17 07:11:04.603467 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path 2024-04-17 07:11:04.604083 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path 2024-04-17 07:11:04.604769 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path 2024-04-17 07:11:04.619381 INFO AppDaemon: Loading App Module: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py 2024-04-17 07:11:04.865877 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqtt.py - ignoring 2024-04-17 07:11:04.867946 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring 2024-04-17 07:11:04.869129 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring 2024-04-17 07:11:04.870370 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring 2024-04-17 07:11:04.871683 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring 2024-04-17 07:11:04.872809 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring 2024-04-17 07:11:04.873844 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring 2024-04-17 07:11:04.875012 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring 2024-04-17 07:11:04.876022 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring 2024-04-17 07:11:04.877264 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/apis.py - ignoring 2024-04-17 07:11:04.878477 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring 2024-04-17 07:11:04.879439 INFO AppDaemon: Loading app NSPanel_Schlafzimmer using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui 2024-04-17 07:11:04.881525 INFO AppDaemon: Calling initialize() for NSPanel_Schlafzimmer 2024-04-17 07:11:04.995262 INFO NSPanel_Schlafzimmer: Starting 2024-04-17 07:11:05.016706 INFO NSPanel_Schlafzimmer: Input config: {'panelRecvTopic': 'tele/nspanel_schlafzimmer/RESULT', 'panelSendTopic': 'tele/nspanel_schlafzimmer/CustomSend', 'model': 'eu', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '7:00:00', 'value': 10}, {'time': '23:00:00', 'value': 0}], 'locale': 'de_DE', 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'automation.wled_an'}, {'entity': 'automation.wled_aus'}], 'title': 'Example 1'}]} 2024-04-17 07:11:05.018950 INFO NSPanel_Schlafzimmer: Loaded config: {'panelRecvTopic': 'tele/nspanel_schlafzimmer/RESULT', 'panelSendTopic': 'tele/nspanel_schlafzimmer/CustomSend', 'updateMode': 'auto-notify', 'model': 'eu', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '7:00:00', 'value': 10}, {'time': '23:00:00', 'value': 0}], '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': 'automation.wled_an'}, {'entity': 'automation.wled_aus'}], 'title': 'Example 1'}], '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'}, 'hiddenCards': []} 2024-04-17 07:11:05.036420 INFO NSPanel_Schlafzimmer: gtest123: ['automation.wled_an', 'automation.wled_aus', 'weather.example'] 2024-04-17 07:11:05.038568 INFO NSPanel_Schlafzimmer: Registering callbacks for the following items: ['automation.wled_an', 'automation.wled_aus', 'weather.example'] 2024-04-17 07:11:05.050412 INFO NSPanel_Schlafzimmer: Started (v4.3.3) 2024-04-17 07:11:05.052604 INFO AppDaemon: App initialization complete 2024-04-17 07:11:06.088719 INFO NSPanel_Schlafzimmer: MQTT callback for: {'topic': 'tele/nspanel_schlafzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,eu"}'} 2024-04-17 07:11:06.095708 INFO NSPanel_Schlafzimmer: Received Message from Screen: event,startup,53,eu 2024-04-17 07:11:06.106466 INFO NSPanel_Schlafzimmer: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-04-17 07:11:06.110051 INFO NSPanel_Schlafzimmer: Startup Event 2024-04-17 07:11:11.573033 INFO NSPanel_Schlafzimmer: MQTT callback for: {'topic': 'tele/nspanel_schlafzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,eu"}'} 2024-04-17 07:11:11.574865 INFO NSPanel_Schlafzimmer: Received Message from Screen: event,startup,53,eu 2024-04-17 07:11:11.579599 INFO NSPanel_Schlafzimmer: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-04-17 07:11:11.582109 INFO NSPanel_Schlafzimmer: Startup Event 2024-04-17 07:11:17.568391 INFO NSPanel_Schlafzimmer: MQTT callback for: {'topic': 'tele/nspanel_schlafzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,eu"}'} 2024-04-17 07:11:17.569926 INFO NSPanel_Schlafzimmer: Received Message from Screen: event,startup,53,eu 2024-04-17 07:11:17.574382 INFO NSPanel_Schlafzimmer: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-04-17 07:11:17.579819 INFO NSPanel_Schlafzimmer: Startup Event`



### ADDITIONAL INFORMATION

_Add information about your setup here, if any. (For example docker version of AppDaemon instead of the HomeAssistant Add-on)_

Tasmota console output after Restart:

`00:00:00.001 HDW: ESP32-D0WD-V3 v3.0 
00:00:00.087 UFS: FlashFS mounted with 272 kB free
00:00:00.112 CFG: Loaded from File, Count 94
00:00:00.123 QPC: Count 1
00:00:00.195 BRY: Berry initialized, RAM used 3884 bytes
00:00:00.211 Project tasmota - Tasmota Version 13.4.1.1(1d04c00-nspanel)-3_0_0(2024-04-16T10:13:30)
00:00:00.471 NXP: Initializing Driver
00:00:00.475 BRY: Successfully loaded 'autoexec.be'
00:00:01.190 WIF: Connecting to AP1 BlueNet Channel 1 BSSId 38:10:D5:C9:25:99 in mode HT20 as nspanel-schlafzimmer-5360...
00:00:03.751 WIF: Connected
06:12:39.012 HTP: Web server active on nspanel-schlafzimmer-5360 with IP address 192.168.2.36
06:12:40.004 MQT: Attempting connection...
06:12:40.032 MQT: Connected
06:12:40.035 MQT: tele/nspanel_schlafzimmer/LWT = Online (retained)
06:12:40.037 MQT: cmnd/nspanel_schlafzimmer/POWER = 
06:12:40.041 MQT: tele/nspanel_schlafzimmer/INFO1 = {"Info1":{"Module":"NSPanel","Version":"13.4.1.1(1d04c00-nspanel)","FallbackTopic":"cmnd/NSPanel_Schlafzimmer_fb/","GroupTopic":"cmnd/tasmotas/"}}
06:12:40.055 MQT: tele/nspanel_schlafzimmer/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"nspanel-schlafzimmer-5360","IPAddress":"192.168.2.36","IP6Global":"","IP6Local":"fe80::4ae7:29ff:fec5:f4f0%st1"}}
06:12:40.079 MQT: tele/nspanel_schlafzimmer/INFO3 = {"Info3":{"RestartReason":"Vbat power on reset","BootCount":24}}
06:12:40.094 MQT: stat/nspanel_schlafzimmer/RESULT = {"POWER1":"ON"}
06:12:40.099 MQT: stat/nspanel_schlafzimmer/POWER1 = ON
06:12:40.101 MQT: stat/nspanel_schlafzimmer/RESULT = {"POWER2":"OFF"}
06:12:40.102 MQT: stat/nspanel_schlafzimmer/POWER2 = OFF
06:12:41.131 MQT: stat/nspanel_schlafzimmer/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32-nspanel.bin","RestartReason":"Vbat power on reset","Uptime":"0T00:00:06","StartupUTC":"2024-04-17T05:12:35","Sleep":0,"CfgHolder":4617,"BootCount":23,"BCResetTime":"2024-04-16T14:26:35","SaveCount":94}}
06:12:41.184 MQT: stat/nspanel_schlafzimmer/STATUS11 = {"StatusSTS":{"Time":"2024-04-17T06:12:41","Uptime":"0T00:00:06","UptimeSec":6,"Heap":136,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":225,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":217},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"BlueNet","BSSId":"38:10:D5:C9:25:99","Channel":1,"Mode":"HT20","RSSI":88,"Signal":-56,"LinkCount":1,"Downtime":"0T00:00:03"}}}
06:12:41.225 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:12:41.242 MQT: stat/nspanel_schlafzimmer/RESULT = {"Time":"2024-04-17T06:12:41","Uptime":"0T00:00:06","UptimeSec":6,"Heap":131,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":230,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":213},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"BlueNet","BSSId":"38:10:D5:C9:25:99","Channel":1,"Mode":"HT20","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:03"}}
06:12:41.292 MQT: stat/nspanel_schlafzimmer/STATUS10 = {"StatusSNS":{"Time":"2024-04-17T06:12:41","ANALOG":{"Temperature1":24.5},"TempUnit":"C"}}
06:12:42.861 QPC: Reset
06:12:44.859 MQT: tele/nspanel_schlafzimmer/STATE = {"Time":"2024-04-17T06:12:44","Uptime":"0T00:00:09","UptimeSec":9,"Heap":137,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":242,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":213},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"BlueNet","BSSId":"38:10:D5:C9:25:99","Channel":1,"Mode":"HT20","RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:03"}}
06:12:44.902 MQT: tele/nspanel_schlafzimmer/SENSOR = {"Time":"2024-04-17T06:12:44","ANALOG":{"Temperature1":24.5},"TempUnit":"C"}
06:12:47.168 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:12:53.468 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:12:59.368 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:05.368 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:11.270 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:17.269 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:23.168 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:29.168 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}
06:13:35.069 MQT: tele/nspanel_schlafzimmer/RESULT = {"CustomRecv":"event,startup,53,eu"}`

mqtt discovery:
![Screenshot 2024-04-17 071900](https://github.com/joBr99/nspanel-lovelace-ui/assets/104345121/d683af36-286c-4ff3-8aac-1b8032da89f0)
joBr99 commented 2 months ago

Hey, adjust your mqtt send topic:

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

Send topic has the be cmnd instead of tele in your apps.yaml

LOGOLEX commented 2 months ago

O M G

I've spend hours for comparing and editing configs, moving app_dir, reflashing esphome and tried tasmota instead. i've checked mqtt topic a hundred times. it was too onvious.

Thank you.

THANK YOU

joBr99 commented 2 months ago

sometimes you just need a second set of eyes ;)