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

[BUG] navigate doesn't work #1145

Closed Bascht74 closed 5 months ago

Bascht74 commented 5 months ago

PROBLEM DESCRIPTION

I made a simple configuration with a navigation entity and it doesn't work. I read the documentation twice (https://docs.nspanel.pky.eu/stable/subpages/), but I don't find my error.

Maybe anybody can help.

REQUESTED INFORMATION

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

appdaemon.yaml: secrets: /homeassistant/integrations/secrets.yaml

/config/integrations/secrets.yaml to /homeassistant/integrations/secrets.yaml`.

appdaemon: latitude: 52.379189 longitude: 4.899431 elevation: 2 time_zone: Europe/Berlin

You can add missing_app_warnings if you don't want any

warning spam from ControllerX when starting AppDaemon

missing_app_warnings: 0 app_dir: /homeassistant/appdaemon/apps/ # !!! This is really important for AppDaemon HA Addon >= 15 plugins: HASS: type: hass MQTT: type: mqtt namespace: mqtt # This is important client_host: core-mosquitto.local.hass.io # This should work if you are using supervised HomeAssistant; if not use the IP Address instead. client_port: 1883 client_user: mqtt client_password: ### client_id: "appdaemon" client_topics: NONE http: url: http://127.0.0.1:5050 admin: api: hadashboard:

- [ ] Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:

Log output here: 2024-01-19 12:36:35.779877 INFO AppDaemon: Terminating panel-eg-wohnzimmer 2024-01-19 12:36:35.780815 INFO AppDaemon: Reloading Module: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py 2024-01-19 12:36:35.783062 INFO AppDaemon: Loading app panel-eg-wohnzimmer using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui 2024-01-19 12:36:35.786092 INFO AppDaemon: Calling initialize() for panel-eg-wohnzimmer 2024-01-19 12:36:35.787075 INFO panel-eg-wohnzimmer: Starting 2024-01-19 12:36:35.789103 INFO panel-eg-wohnzimmer: Input config: {'panelRecvTopic': 'panel-eg-wohnzimmer/RESULT', 'panelSendTopic': 'panel-eg-wohnzimmer/CustomSend', 'model': 'us-p', 'cards': [{'type': 'cardGrid', 'title': 'Wohnzimmer', 'key': 'home', 'entities': [{'entity': 'navigate.testkey'}]}], 'hidden_cards': [{'type': 'cardGrid', 'key': 'testkey', 'title': 'Lampen', 'entities': [{'entity': 'light.lampe_eg_wohnzimmer_decke', 'name': 'WZ Decke'}]}]} 2024-01-19 12:36:35.790001 INFO panel-eg-wohnzimmer: Loaded config: {'panelRecvTopic': 'panel-eg-wohnzimmer/RESULT', 'panelSendTopic': 'panel-eg-wohnzimmer/CustomSend', 'updateMode': 'auto-notify', 'model': 'us-p', 'sleepTimeout': 20, 'sleepBrightness': 20, 'screenBrightness': 100, 'defaultBackgroundColor': 'ha-dark', 'featureExperimentalSliders': False, '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': 'cardGrid', 'title': 'Wohnzimmer', 'key': 'home', 'entities': [{'entity': 'navigate.testkey'}]}], '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': [], 'hidden_cards': [{'type': 'cardGrid', 'key': 'testkey', 'title': 'Lampen', 'entities': [{'entity': 'light.lampe_eg_wohnzimmer_decke', 'name': 'WZ Decke'}]}]} 2024-01-19 12:36:35.791881 INFO panel-eg-wohnzimmer: Sending MQTT Message: pageType~pageStartup 2024-01-19 12:36:35.797620 INFO panel-eg-wohnzimmer: gtest123: ['navigate.testkey', 'weather.example'] 2024-01-19 12:36:35.798556 INFO panel-eg-wohnzimmer: Registering callbacks for the following items: ['weather.example'] 2024-01-19 12:36:35.800891 INFO MQTT: Topic panel-eg-wohnzimmer/RESULT already subscribed to 2024-01-19 12:36:35.802276 INFO panel-eg-wohnzimmer: Started (v4.3.1) 2024-01-19 12:36:36.073688 INFO panel-eg-wohnzimmer: MQTT callback for: {'topic': 'panel-eg-wohnzimmer/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":999}'} 2024-01-19 12:36:36.074631 INFO panel-eg-wohnzimmer: Update Pre-Check failed Tasmota Driver Version: 999 Panel Version: None 2024-01-19 12:36:36.078937 INFO panel-eg-wohnzimmer: MQTT callback for: {'topic': 'panel-eg-wohnzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,us-p"}'} 2024-01-19 12:36:36.079760 INFO panel-eg-wohnzimmer: Received Message from Screen: event,startup,53,us-p 2024-01-19 12:36:36.080605 INFO panel-eg-wohnzimmer: Sending MQTT Message: X 2024-01-19 12:36:36.082718 INFO panel-eg-wohnzimmer: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-01-19 12:36:36.083553 INFO panel-eg-wohnzimmer: Startup Event 2024-01-19 12:36:36.091464 INFO panel-eg-wohnzimmer: Sending MQTT Message: time~12:36~ 2024-01-19 12:36:36.103102 INFO panel-eg-wohnzimmer: Sending MQTT Message: date~Friday, 19. January 2024 2024-01-19 12:36:36.105624 INFO panel-eg-wohnzimmer: Sending MQTT Message: dimmode~20~100~6371~~0 2024-01-19 12:36:36.107721 INFO panel-eg-wohnzimmer: Sending MQTT Message: pageType~screensaver 2024-01-19 12:36:36.109529 INFO panel-eg-wohnzimmer: Sending MQTT Message: timeout~20 2024-01-19 12:36:36.131551 INFO panel-eg-wohnzimmer: Sending MQTT Message: weatherUpdate~text~weather.example~���~17299~Not found check~ apps.yaml~text~weather.example~���~17299~Not found check~ apps.yaml~text~weather.example~���~17299~Not found check~ apps.yaml~text~weather.example~���~17299~Not found check~ apps.yaml~text~weather.example~���~17299~Not found check~ apps.yaml 2024-01-19 12:36:36.135069 INFO panel-eg-wohnzimmer: Sending MQTT Message: statusUpdate~~ 2024-01-19 12:36:36.417674 INFO panel-eg-wohnzimmer: MQTT callback for: {'topic': 'panel-eg-wohnzimmer/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":999}'} 2024-01-19 12:36:36.418602 INFO panel-eg-wohnzimmer: Update Pre-Check sucessful Tasmota Driver Version: 999 Panel Version: 53



### TO REPRODUCE
Add the configuration and check the panel

### EXPECTED BEHAVIOUR
The navigation should be possible

### SCREENSHOTS

### ADDITIONAL CONTEXT
Using Home Assistant.
Thx for your work

### PANEL / FIRMWARE VERION
 4.3.3 (US-P)
joBr99 commented 5 months ago

please add the logs that are generated during opening your cardGrid and pressing the navigation button

Bascht74 commented 5 months ago
2024-01-19 19:18:10.064077 INFO panel-eg-wohnzimmer: MQTT callback for: {'topic': 'panel-eg-wohnzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,buttonPress2,screensaver,bExit,1"}'}

2024-01-19 19:18:10.064996 INFO panel-eg-wohnzimmer: Received Message from Screen: event,buttonPress2,screensaver,bExit,1

2024-01-19 19:18:10.065842 INFO panel-eg-wohnzimmer: Button Press Event; entity_id: screensaver; button_type: bExit; value: 1 

2024-01-19 19:18:10.066877 INFO panel-eg-wohnzimmer: Sending MQTT Message: pageType~cardGrid

2024-01-19 19:18:10.069011 INFO panel-eg-wohnzimmer: Sending MQTT Message: timeout~20

2024-01-19 19:18:10.074343 INFO panel-eg-wohnzimmer: Sending MQTT Message: entityUpd~Wohnzimmer~delete~~~~~~delete~~~~~~text~navigate.testkey~���~17299~page not found~~light~uuid.zB7xYkLaWf~���~17299~WZ Decke~0

2024-01-19 19:18:11.886298 INFO panel-eg-wohnzimmer: MQTT callback for: {'topic': 'panel-eg-wohnzimmer/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,buttonPress2,navigate.testkey,button"}'}

2024-01-19 19:18:11.887183 INFO panel-eg-wohnzimmer: Received Message from Screen: event,buttonPress2,navigate.testkey,button

2024-01-19 19:18:11.888017 INFO panel-eg-wohnzimmer: Button Press Event; entity_id: navigate.testkey; button_type: button; value: None 

2024-01-19 19:18:11.889389 INFO panel-eg-wohnzimmer: No page with key navigate.testkey found
joBr99 commented 5 months ago

Ah got it the key for hidden cards is hiddenCards not hidden_cards

Bascht74 commented 5 months ago

aaaaarrrrgghgghghg!!!!!! Thx!!!!!! I looked everywhere and tried almost simple thing, but this....

Info für mich: Ich werde wohl doch älter....