joBr99 / nspanel-issue-graveyard

place to move waiting for content issues to and to keep the search a bit cleaned up
0 stars 0 forks source link

[Help] Waiting for content... screen although connected to MQTT #42

Closed softhuntermike closed 1 year ago

softhuntermike commented 1 year ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. Although AppDaemon log show "MQTT Plugin initialization complete", still on NSPanel show "Waiting for content"

REQUESTED INFORMATION

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


s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting 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.3 You are running the latest version of this add-on. System: Home Assistant OS 9.3 (amd64 / qemux86-64) Home Assistant Core: 2022.10.5 Home Assistant Supervisor: 2022.10.0

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 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 [14:24:10] INFO: Starting AppDaemon... 2022-10-30 08:24:36.183008 INFO AppDaemon: AppDaemon Version 4.2.1 starting 2022-10-30 08:24:36.195215 INFO AppDaemon: Python version is 3.10.5 2022-10-30 08:24:36.199553 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml 2022-10-30 08:24:36.201512 INFO AppDaemon: Added log: AppDaemon 2022-10-30 08:24:36.203676 INFO AppDaemon: Added log: Error 2022-10-30 08:24:36.206799 INFO AppDaemon: Added log: Access 2022-10-30 08:24:36.209724 INFO AppDaemon: Added log: Diag 2022-10-30 08:24:39.476836 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2022-10-30 08:24:41.898570 INFO HASS: HASS Plugin Initializing 2022-10-30 08:24:41.904974 INFO HASS: HASS Plugin initialization complete 2022-10-30 08:24:41.908425 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin 2022-10-30 08:24:43.190844 INFO MQTT: MQTT Plugin Initializing 2022-10-30 08:24:43.196661 INFO MQTT: Using 'appdaemon/status' as Will Topic 2022-10-30 08:24:43.202814 INFO MQTT: Using 'appdaemon/status' as Birth Topic 2022-10-30 08:24:43.217740 INFO AppDaemon: Initializing HTTP 2022-10-30 08:24:43.226515 INFO AppDaemon: Using 'ws' for event stream 2022-10-30 08:24:43.294547 INFO AppDaemon: Starting API 2022-10-30 08:24:43.334801 INFO AppDaemon: Starting Admin Interface 2022-10-30 08:24:43.343322 INFO AppDaemon: Starting Dashboards 2022-10-30 08:24:43.668277 INFO MQTT: Connected to Broker at URL 192.168.88.20:1883 2022-10-30 08:24:43.693113 INFO HASS: Connected to Home Assistant 2022.10.5 2022-10-30 08:24:43.745916 INFO AppDaemon: Got initial state from namespace mqtt 2022-10-30 08:24:43.749058 INFO MQTT: MQTT Plugin initialization complete 2022-10-30 08:24:43.788167 INFO AppDaemon: App 'nspanel-1' added 2022-10-30 08:24:43.791647 INFO AppDaemon: Found 1 total apps 2022-10-30 08:24:43.796595 INFO AppDaemon: Starting Apps with 1 workers and 1 pins 2022-10-30 08:24:43.800094 INFO AppDaemon: Running on port 5050 2022-10-30 08:24:43.912715 INFO HASS: Evaluating startup conditions 2022-10-30 08:24:43.934002 INFO HASS: Startup condition met: hass state=RUNNING 2022-10-30 08:24:43.940609 INFO HASS: All startup conditions met 2022-10-30 08:24:44.102966 INFO AppDaemon: Got initial state from namespace default 2022-10-30 08:24:45.830153 INFO AppDaemon: Scheduler running in realtime 2022-10-30 08:24:45.842541 INFO AppDaemon: Adding /config/appdaemon/apps to module import path 2022-10-30 08:24:45.847530 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui to module import path 2022-10-30 08:24:45.850542 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path 2022-10-30 08:24:45.853660 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path 2022-10-30 08:24:45.856790 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path 2022-10-30 08:24:45.860018 INFO AppDaemon: Adding /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path 2022-10-30 08:24:45.918487 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring 2022-10-30 08:24:45.923624 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py 2022-10-30 08:24:46.702086 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring 2022-10-30 08:24:46.706626 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqtt.py - ignoring 2022-10-30 08:24:46.710860 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring 2022-10-30 08:24:46.714931 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/iconmapping.py - ignoring 2022-10-30 08:24:46.719049 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/apis.py - ignoring 2022-10-30 08:24:46.723159 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring 2022-10-30 08:24:46.729294 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring 2022-10-30 08:24:46.733773 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring 2022-10-30 08:24:46.738527 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring 2022-10-30 08:24:46.744395 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring 2022-10-30 08:24:46.752175 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring 2022-10-30 08:24:46.757528 INFO AppDaemon: Initializing app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui 2022-10-30 08:24:47.293492 INFO nspanel-1: Starting 2022-10-30 08:24:47.317068 INFO nspanel-1: Input config: {'panelRecvTopic': 'tele/tasmota%06X/RESULT', 'panelSendTopic': 'cmnd/tasmota_%06X/CustomSend', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '7:00:00', 'value': 10}, {'time': '23:00:00', 'value': 0}], 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'switch.living_room_mainli', 'name': 'Example 1'}]}]} 2022-10-30 08:24:47.326756 INFO nspanel-1: Loaded config: {'panelRecvTopic': 'tele/tasmota%06X/RESULT', 'panelSendTopic': 'cmnd/tasmota_%06X/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', 'sleepTracking': None, 'sleepTrackingZones': ['not_home', 'off'], 'sleepOverride': None, 'locale': 'en_US', 'timeFormat': '%H:%M', 'dateFormatBabel': 'full', 'dateAdditionalTemplate': '', 'timeAdditionalTemplate': '', 'dateFormat': '%A, %d. %B %Y', 'cards': [{'type': 'cardEntities', 'entities': [{'entity': 'switch.living_room_main_li', 'name': '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': []} 2022-10-30 08:24:47.364784 INFO nspanel-1: Sending MQTT Message: pageType~pageStartup 2022-10-30 08:24:47.412031 INFO nspanel-1: Registering callbacks for the following items: ['switch.living_room_main_li', 'weather.example'] 2022-10-30 08:24:47.430655 INFO nspanel-1: Started 2022-10-30 08:24:47.436149 INFO AppDaemon: App initialization complete 2022-10-30 08:25:00.497738 INFO nspanel-1: Sending MQTT Message: time~14:25~ 2022-10-30 08:26:01.324203 INFO nspanel-1: Sending MQTT Message: time~14:26~ 2022-10-30 08:27:00.255978 INFO nspanel-1: Sending MQTT Message: time~14:27~ 2022-10-30 08:28:00.155811 INFO nspanel-1: Sending MQTT Message: time~14:28~ 2022-10-30 08:29:00.684421 INFO nspanel-1: Sending MQTT Message: time~14:29~ 2022-10-30 08:30:00.369000 INFO nspanel-1: Sending MQTT Message: time~14:30~



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._
Expecting the NSPanel screen will show Entities card. Currently only show "Waiting for content..."

### SCREENSHOTS
_If applicable, add screenshots/pictures to help explain your problem._

### ADDITIONAL CONTEXT
_Add any other context about the problem here._
_Please note here in case you are using ioBroker_

### PANEL / FIRMWARE VERION
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
NSPanel US-L (horizontal)
joBr99 commented 1 year ago

Hey, your configuration for

    panelRecvTopic: "tele/tasmota_%06X/RESULT"
    panelSendTopic: "cmnd/tasmota_%06X/CustomSend"

isn't correct. In Tasmota %06X is a variable for the last 6 chars of the device's MAC.

https://tasmota.github.io/docs/MQTT/#topic

Change it to something human readable/unique which identifies your device or use the resulting topic name could be something like this tasmota_0BE304 you will find this on the tasmota web ui.

softhuntermike commented 1 year ago

Thank you, it works now. I'm quite new to Tasmota/mqtt so didn't know.

Now the screen is up and running. I tried adding just one switch entity to test (using cardEntities and CardGrid) but the response from when I touched the screen till when it registered the touch is quite long, if not no response at all. I wonder if there is any setting that I have to pay attention to? Thank you.

joBr99 commented 1 year ago

I'm not aware of any settings influencing the speed.

Try to restart Tasmota and the AppDaemon Container. Influencing factors are the wifi connection quality and the speed of the mqtt broker, appdaemon and homeassistant.

softhuntermike commented 1 year ago

Thank you, Johannes