Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Waiting for Content #1223

Closed
4 tasks
Charlesseux07 opened this issue May 15, 2024 · 12 comments
Closed
4 tasks

[Help] Waiting for Content #1223

Charlesseux07 opened this issue May 15, 2024 · 12 comments
Labels
configuration related to configuration question Further information is requested

Comments

@Charlesseux07
Copy link

PROBLEM DESCRIPTION

I'm seeing the waiting for content message on the Panel and I'm unable to find the configuration issue.

[] 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!

  • Provide a screenshot of your tasmota mqtt configuration:
    image

  • Provide your appdaemon.yaml:

  appdaemon.yaml here:

`---
#secrets: /homeassistant/secrets.yaml
appdaemon:
  app_dir: /homeassistant/appdaemon/apps/
  latitude: <removed>
  longitude: <removed>
  elevation: 2
  time_zone: Europe/France
  plugins:
    HASS:
      type: hass
          MQTT:
      type: mqtt
      namespace: mqtt
      client_id: "appdaemon"
      #client_host: core-mosquitto.local.hass.io # This should work if you are using supervised HomeAssistant; if not use the IP Address instead.
      client_host: 192.168.1.26
      client_port: 1883
      client_user: ha-mqtt
      client_password: <removed>
      client_topics: NONE
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:
`



  • Provide your apps.yaml:
  apps.yaml here:

nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: tele/nspanel_salon/RESULT
    panelSendTopic: cmnd/nspanel_salon/CustomSend
    model: eu
    updateMode: auto-notify
    sleepTimeout: 20
    sleepBrightness:
      - time: "6:00:00"
        value: 10
      - time: "23:00:00"
        value: 0
    locale: fr_FR
    screensaver:
      type: screensaver
      entities:
        - entity: weather.forecast_maison
        - 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: delete
  • Go to Settings>Add-ons>AppDaemon>Log and then, provide the output of the log after restarting the appdaemon container:
  Log output here:
2024-05-15 21:49:03.700887 INFO AppDaemon: Starting Admin Interface
2024-05-15 21:49:03.701472 INFO AppDaemon: Starting Dashboards
2024-05-15 21:49:03.721297 INFO HASS: Connected to Home Assistant 2024.5.3
2024-05-15 21:49:03.723348 INFO AppDaemon: Starting Apps with 0 workers and 0 pins
2024-05-15 21:49:03.724818 INFO AppDaemon: Running on port 5050
2024-05-15 21:49:03.804203 INFO HASS: Evaluating startup conditions
2024-05-15 21:49:03.818696 INFO HASS: Startup condition met: hass state=RUNNING
2024-05-15 21:49:03.819205 INFO HASS: All startup conditions met
2024-05-15 21:49:03.841551 INFO AppDaemon: Got initial state from namespace default
2024-05-15 21:49:04.875068 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:49:05.733910 INFO AppDaemon: Scheduler running in realtime
2024-05-15 21:49:05.744005 INFO AppDaemon: Adding /config/apps to module import path
2024-05-15 21:49:05.744787 INFO AppDaemon: App initialization complete
2024-05-15 21:49:09.875929 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:49:09.896019 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:49:09.951155 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:51:00.739211 INFO AppDaemon: Client disconnection from Admin Client
2024-05-15 21:51:00.747490 INFO AppDaemon: Previous message repeated 2 times
2024-05-15 21:51:00.747991 INFO AppDaemon: Client disconnected unexpectedly from Admin Client
2024-05-15 21:51:01.442794 INFO AppDaemon: New client Admin Client connected
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service appdaemon: stopping
2024-05-15 21:57:48.009842 INFO AppDaemon: SIGTERM Received
2024-05-15 21:57:48.010537 INFO AppDaemon: AppDaemon is shutting down
2024-05-15 21:57:48.014903 INFO HASS: Disconnecting from Home Assistant
2024-05-15 21:57:48.523083 INFO AppDaemon: Shutting down webserver
2024-05-15 21:57:48.524427 INFO AppDaemon: Saving all namespaces
2024-05-15 21:57:48.525274 INFO AppDaemon: AppDaemon is stopped.
[21:57:48] INFO: Service AppDaemon exited with code 0 (by signal 0)
s6-rc: info: service appdaemon successfully stopped
s6-rc: info: service init-appdaemon: stopping
s6-rc: info: service init-appdaemon successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.16.5
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.3
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 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
[21:57:54] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
2024-05-15 21:57:59.453266 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2024-05-15 21:57:59.453671 INFO AppDaemon: Python version is 3.11.9
2024-05-15 21:57:59.454251 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml
2024-05-15 21:57:59.454691 INFO AppDaemon: Added log: AppDaemon
2024-05-15 21:57:59.455135 INFO AppDaemon: Added log: Error
2024-05-15 21:57:59.455508 INFO AppDaemon: Added log: Access
2024-05-15 21:57:59.455848 INFO AppDaemon: Added log: Diag
2024-05-15 21:57:59.756503 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2024-05-15 21:58:00.060017 INFO HASS: HASS Plugin Initializing
2024-05-15 21:58:00.060283 WARNING HASS: ha_url not found in HASS configuration - module not initialized
2024-05-15 21:58:00.060688 INFO HASS: HASS Plugin initialization complete
2024-05-15 21:58:00.061376 INFO AppDaemon: Initializing HTTP
2024-05-15 21:58:00.061908 INFO AppDaemon: Using 'ws' for event stream
2024-05-15 21:58:00.067522 INFO AppDaemon: Starting API
2024-05-15 21:58:00.071186 INFO AppDaemon: Starting Admin Interface
2024-05-15 21:58:00.071753 INFO AppDaemon: Starting Dashboards
2024-05-15 21:58:00.090846 INFO HASS: Connected to Home Assistant 2024.5.3
2024-05-15 21:58:00.092661 INFO AppDaemon: Starting Apps with 0 workers and 0 pins
2024-05-15 21:58:00.093471 INFO AppDaemon: Running on port 5050
2024-05-15 21:58:00.170859 INFO HASS: Evaluating startup conditions
2024-05-15 21:58:00.184992 INFO HASS: Startup condition met: hass state=RUNNING
2024-05-15 21:58:00.185393 INFO HASS: All startup conditions met
2024-05-15 21:58:00.207848 INFO AppDaemon: Got initial state from namespace default
2024-05-15 21:58:00.877028 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:58:02.101467 INFO AppDaemon: Scheduler running in realtime
2024-05-15 21:58:02.116368 INFO AppDaemon: Adding /config/apps to module import path
2024-05-15 21:58:02.117164 INFO AppDaemon: App initialization complete

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:01.636 RSL: SENSOR = {"Time":"1970-01-01T00:00:01","ANALOG":{"Temperature1":0.0},"TempUnit":"C"}
00:00:01.651 NSP: Sent = {"temperature":0,"tempUnit":"C"}
00:00:02.873 WIF: Connecting to AP1 Bbox-A2A3E31E Channel 6 BSSId 84:1E:A3:A6:1E:10 in mode 11n as nspanel-salon-6796...
00:00:04.649 WIF: Connected
00:00:05.184 HTP: Web server active on nspanel-salon-6796 with IP address 192.168.1.173
21:00:33.046 BRY: Exception> 'attribute_error' - the 'webclient' object has no attribute 'set_follow_redirects'
21:00:33.049 stack traceback:
21:00:33.051 : in function set_weather
21:00:33.064 : in function sync_weather
21:00:33.066 : in function try_rule
21:00:33.068 : in function exec_rules
21:00:33.071 : in function event
21:00:34.172 NSP: Received Raw = bytes('55BB13006576656E742C737461727475702C35332C65755788')
21:00:34.179 RSL: RESULT = {"NSPanel":{"Nextion":"bytes('55BB13006576656E742C737461727475702C35332C65')"}}
21:00:34.202 MQT: Attempting connection...
21:00:34.258 MQT: Connected
21:00:34.265 MQT: tele/nspanel_salon/LWT = Online (retained)
21:00:34.270 MQT: cmnd/nspanel_salon/POWER =
21:00:34.280 MQT: tele/nspanel_salon/INFO1 = {"Info1":{"Module":"NSPanel","Version":"12.2.0(nspanel)","FallbackTopic":"cmnd/nspanel-1_fb/","GroupTopic":"cmnd/tasmotas/"}}
21:00:34.326 MQT: tele/nspanel_salon/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"nspanel-salon-6796","IPAddress":"192.168.1.173"}}
21:00:34.362 MQT: tele/nspanel_salon/INFO3 = {"Info3":{"RestartReason":"Software reset CPU","BootCount":78}}
21:00:34.395 MQT: stat/nspanel_salon/RESULT = {"POWER1":"OFF"}
21:00:34.401 MQT: stat/nspanel_salon/POWER1 = OFF
21:00:34.409 MQT: stat/nspanel_salon/RESULT = {"POWER2":"OFF"}
21:00:34.416 MQT: stat/nspanel_salon/POWER2 = OFF
21:00:34.465 NSP: Sent = {"HMI_ATCDevice":{"ctype":"device","id":"thermostat","outlet":0,"etype":"hot"}
21:00:34.520 NSP: Sent = {"relation":[{"ctype":"device","id":"panel","name":"NsPanel","online":true}]}
21:00:34.580 NSP: Sent = {"HMI_dimOpen":1}
21:00:34.610 NSP: Sent = {"year":2024,"mon":5,"day":15,"hour":21,"min":0,"week":3}
21:00:34.654 NSP: Switch state updated with {"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"off"}]}
21:00:34.660 NSP: Sent = {"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"off"}]}
21:00:34.731 BRY: Exception> 'attribute_error' - the 'webclient' object has no attribute 'set_follow_redirects'
21:00:34.737 stack traceback:
21:00:34.742 : in function set_weather
21:00:34.744 : in function screeninit
21:00:34.748 : in function <lambda>
21:00:34.752 : in function try_rule
21:00:34.765 : in function exec_rules
21:00:34.769 : in function event
21:00:35.361 MQT: stat/nspanel_salon/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"Backlog UrlFetch https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; SetOption151 0;Restart 1","RestartReason":"Software reset CPU","Uptime":"0T00:00:07","StartupUTC":"2024-05-15T20:00:28","Sleep":0,"CfgHolder":4617,"BootCount":77,"BCResetTime":"2024-04-10T17:42:14","SaveCount":128}}
21:00:35.462 MQT: stat/nspanel_salon/STATUS11 = {"StatusSTS":{"Time":"2024-05-15T21:00:35","Uptime":"0T00:00:07","UptimeSec":7,"Heap":121,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":302,"MqttCount":1,"Berry":{"HeapUsed":21,"Objects":424},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Bbox-A2A3E31E","BSSId":"84:1E:A3:A6:1E:10","Channel":6,"Mode":"11n","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:04"}}}
21:00:35.556 MQT: stat/nspanel_salon/RESULT = {"Time":"2024-05-15T21:00:35","Uptime":"0T00:00:07","UptimeSec":7,"Heap":122,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":311,"MqttCount":1,"Berry":{"HeapUsed":21,"Objects":440},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Bbox-A2A3E31E","BSSId":"84:1E:A3:A6:1E:10","Channel":6,"Mode":"11n","RSSI":96,"Signal":-52,"LinkCount":1,"Downtime":"0T00:00:04"}}
21:00:35.655 MQT: stat/nspanel_salon/STATUS10 = {"StatusSNS":{"Time":"2024-05-15T21:00:35","ANALOG":{"Temperature1":23.4},"TempUnit":"C"}}
21:00:36.746 QPC: Reset
21:00:38.748 MQT: tele/nspanel_salon/STATE = {"Time":"2024-05-15T21:00:38","Uptime":"0T00:00:10","UptimeSec":10,"Heap":115,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":367,"MqttCount":1,"Berry":{"HeapUsed":20,"Objects":412},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Bbox-A2A3E31E","BSSId":"84:1E:A3:A6:1E:10","Channel":6,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:04"}}
21:00:38.804 NSP: Sent = {"wifiState":"connected","rssiLevel":4}
21:00:38.857 MQT: tele/nspanel_salon/SENSOR = {"Time":"2024-05-15T21:00:38","ANALOG":{"Temperature1":23.3},"TempUnit":"C"}
21:00:38.881 NSP: Sent = {"temperature":23.3,"tempUnit":"C"}
21:00:46.186 NSP: Received Raw = bytes('55BB13006576656E742C737461727475702C35332C65755788')
21:00:46.199 MQT: tele/nspanel_salon/RESULT = {"NSPanel":{"Nextion":"bytes('55BB13006576656E742C737461727475702C35332C65')"}}

mqtt discovery:

image

@Charlesseux07 Charlesseux07 added configuration related to configuration question Further information is requested labels May 15, 2024
@joBr99
Copy link
Owner

joBr99 commented May 15, 2024

Hey, the identation of your appdaemon.yaml needs to be like this:

  appdaemon.yaml here:

`---
#secrets: /homeassistant/secrets.yaml
appdaemon:
  app_dir: /homeassistant/appdaemon/apps/
  latitude: <removed>
  longitude: <removed>
  elevation: 2
  time_zone: Europe/France
  plugins:
    HASS:
      type: hass
    MQTT:
      type: mqtt
      namespace: mqtt
      client_id: "appdaemon"
      #client_host: core-mosquitto.local.hass.io # This should work if you are using supervised HomeAssistant; if not use the IP Address instead.
      client_host: 192.168.1.26
      client_port: 1883
      client_user: ha-mqtt
      client_password: <removed>
      client_topics: NONE
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:

MQTT needs to be on the same level as HASS - Please restart appdaemon and post it's log outpoint again.

@Charlesseux07
Copy link
Author

Charlesseux07 commented May 15, 2024

I just modified my file and restarted appdaemon attached the appdaemon log

2024-05-15 21:58:00.071186 INFO AppDaemon: Starting Admin Interface
2024-05-15 21:58:00.071753 INFO AppDaemon: Starting Dashboards
2024-05-15 21:58:00.090846 INFO HASS: Connected to Home Assistant 2024.5.3
2024-05-15 21:58:00.092661 INFO AppDaemon: Starting Apps with 0 workers and 0 pins
2024-05-15 21:58:00.093471 INFO AppDaemon: Running on port 5050
2024-05-15 21:58:00.170859 INFO HASS: Evaluating startup conditions
2024-05-15 21:58:00.184992 INFO HASS: Startup condition met: hass state=RUNNING
2024-05-15 21:58:00.185393 INFO HASS: All startup conditions met
2024-05-15 21:58:00.207848 INFO AppDaemon: Got initial state from namespace default
2024-05-15 21:58:00.877028 INFO AppDaemon: New client Admin Client connected
2024-05-15 21:58:02.101467 INFO AppDaemon: Scheduler running in realtime
2024-05-15 21:58:02.116368 INFO AppDaemon: Adding /config/apps to module import path
2024-05-15 21:58:02.117164 INFO AppDaemon: App initialization complete
2024-05-15 22:06:05.386464 INFO AppDaemon: Previous message repeated 1 times
2024-05-15 22:06:05.387261 INFO AppDaemon: Client disconnection from Admin Client
2024-05-15 22:06:05.392017 INFO AppDaemon: Previous message repeated 1 times
2024-05-15 22:06:05.392431 INFO AppDaemon: Client disconnected unexpectedly from Admin Client
2024-05-15 23:03:10.938514 INFO AppDaemon: Client disconnection from None
2024-05-15 23:03:17.057994 INFO AppDaemon: New client Admin Client connected
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service appdaemon: stopping
2024-05-15 23:08:26.494577 INFO AppDaemon: Previous message repeated 1 times
2024-05-15 23:08:26.495050 INFO AppDaemon: SIGTERM Received
2024-05-15 23:08:26.495429 INFO AppDaemon: AppDaemon is shutting down
2024-05-15 23:08:26.498553 INFO HASS: Disconnecting from Home Assistant
2024-05-15 23:08:27.438433 INFO AppDaemon: Shutting down webserver
2024-05-15 23:08:27.439791 INFO AppDaemon: Saving all namespaces
2024-05-15 23:08:27.440733 INFO AppDaemon: AppDaemon is stopped.
[23:08:27] INFO: Service AppDaemon exited with code 0 (by signal 0)
s6-rc: info: service appdaemon successfully stopped
s6-rc: info: service init-appdaemon: stopping
s6-rc: info: service init-appdaemon successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.16.5
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.3
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 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
[23:08:33] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
2024-05-15 23:08:38.115884 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2024-05-15 23:08:38.116292 INFO AppDaemon: Python version is 3.11.9
2024-05-15 23:08:38.116676 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml
2024-05-15 23:08:38.117075 INFO AppDaemon: Added log: AppDaemon
2024-05-15 23:08:38.117433 INFO AppDaemon: Added log: Error
2024-05-15 23:08:38.117959 INFO AppDaemon: Added log: Access
2024-05-15 23:08:38.118363 INFO AppDaemon: Added log: Diag
2024-05-15 23:08:38.420316 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2024-05-15 23:08:38.723950 INFO HASS: HASS Plugin Initializing
2024-05-15 23:08:38.724217 WARNING HASS: ha_url not found in HASS configuration - module not initialized
2024-05-15 23:08:38.724657 INFO HASS: HASS Plugin initialization complete
2024-05-15 23:08:38.725345 INFO AppDaemon: Initializing HTTP
2024-05-15 23:08:38.725947 INFO AppDaemon: Using 'ws' for event stream
2024-05-15 23:08:38.731500 INFO AppDaemon: Starting API
2024-05-15 23:08:38.735050 INFO AppDaemon: Starting Admin Interface
2024-05-15 23:08:38.735601 INFO AppDaemon: Starting Dashboards
2024-05-15 23:08:38.756614 INFO HASS: Connected to Home Assistant 2024.5.3
2024-05-15 23:08:38.758533 INFO AppDaemon: Starting Apps with 0 workers and 0 pins
2024-05-15 23:08:38.759836 INFO AppDaemon: Running on port 5050
2024-05-15 23:08:38.837417 INFO HASS: Evaluating startup conditions
2024-05-15 23:08:38.851644 INFO HASS: Startup condition met: hass state=RUNNING
2024-05-15 23:08:38.852275 INFO HASS: All startup conditions met
2024-05-15 23:08:38.875253 INFO AppDaemon: Got initial state from namespace default
2024-05-15 23:08:40.129945 INFO AppDaemon: New client Admin Client connected
2024-05-15 23:08:40.767033 INFO AppDaemon: Scheduler running in realtime
2024-05-15 23:08:40.781296 INFO AppDaemon: Adding /config/apps to module import path
2024-05-15 23:08:40.781940 INFO AppDaemon: App initialization complete

@joBr99
Copy link
Owner

joBr99 commented May 19, 2024

Doesn't look like your appdaemon is loading anything.

Can you please post the location of your appdaemon.yaml and apps.yaml files?

@mkaflowski
Copy link

mkaflowski commented May 19, 2024

For me solution was copying nspanel-lovelace-ui folder from home assitant to the appdaemon next to apps.yaml.
I have described my docker setup here (it is polish but you can use translate for it): https://mateuszkaflowski.pl/blog/2024/05/19/nspanel-z-obsluga-home-assistant-pod-docker/
Maybe it will be helpful for people doing Synology setup based on dockers.

@joBr99
Copy link
Owner

joBr99 commented May 19, 2024

@mkaflowski Please see #1029

If you don't have app_dir configured app daemon won't access the files downloaded by hacs.

(With a pure docker setup, you don't need app_dir instead a volume mount to have the apps dir at the expected location. The should be a note in the docs on that as well.)

@Charlesseux07
Copy link
Author

Location of my appdaemon.yaml and apps.yaml files

\192.168.1.26\addon_configs\a0d7b954_appdaemon
image

\192.168.1.26\config\appdaemon\apps
image

@joBr99
Copy link
Owner

joBr99 commented May 22, 2024

are you sure that you have app_dir: /homeassistant/appdaemon/apps/ in your appdaemon.yaml config? Your logs says that you have configured /config/apps instead.

My appdaemon log looks like this:

2024-05-22 17:35:42.470773 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/ to module import path

@Charlesseux07
Copy link
Author

Charlesseux07 commented May 22, 2024

I modified my appdaemon file again and my apps file saved on the desktop before replacing my file in the appdaemon folder and here is the new appdaemon log (appdaemon stopped after 2 min)

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
[18:46:27] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 417, in main
    admain.main()
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 362, in main
    self.logging.set_tz(pytz.timezone(config["appdaemon"]["time_zone"]))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pytz/__init__.py", line 188, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'Europe/France'
[18:46:32] INFO: Service AppDaemon exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service appdaemon: stopping
s6-rc: info: service appdaemon successfully stopped
s6-rc: info: service init-appdaemon: stopping
s6-rc: info: service init-appdaemon successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.16.5
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.4
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 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
[18:47:58] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 417, in main
    admain.main()
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 362, in main
    self.logging.set_tz(pytz.timezone(config["appdaemon"]["time_zone"]))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pytz/__init__.py", line 188, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'Europe/France'
[18:48:03] INFO: Service AppDaemon exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service appdaemon: stopping
s6-rc: info: service appdaemon successfully stopped
s6-rc: info: service init-appdaemon: stopping
s6-rc: info: service init-appdaemon successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

@joBr99
Copy link
Owner

joBr99 commented May 22, 2024

Hey Europe/France is not a valid timezone, change it to Europe/Paris

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

@Charlesseux07
Copy link
Author

Charlesseux07 commented May 22, 2024

Thank you very much for your help I modified my time zone and restarted Appdeamon attached appdeamon journal

s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.16.5
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.4
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 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
[21:54:41] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
2024-05-22 21:54:45.932124 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2024-05-22 21:54:45.932528 INFO AppDaemon: Python version is 3.11.9
2024-05-22 21:54:45.932840 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml
2024-05-22 21:54:45.933167 INFO AppDaemon: Added log: AppDaemon
2024-05-22 21:54:45.933479 INFO AppDaemon: Added log: Error
2024-05-22 21:54:45.933760 INFO AppDaemon: Added log: Access
2024-05-22 21:54:45.934040 INFO AppDaemon: Added log: Diag
2024-05-22 21:54:46.233544 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2024-05-22 21:54:46.534524 INFO HASS: HASS Plugin Initializing
2024-05-22 21:54:46.534789 WARNING HASS: ha_url not found in HASS configuration - module not initialized
2024-05-22 21:54:46.535007 INFO HASS: HASS Plugin initialization complete
2024-05-22 21:54:46.535385 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2024-05-22 21:54:46.644580 INFO MQTT: MQTT Plugin Initializing
2024-05-22 21:54:46.644889 INFO MQTT: Using 'appdaemon/status' as Will Topic
2024-05-22 21:54:46.645076 INFO MQTT: Using 'appdaemon/status' as Birth Topic
2024-05-22 21:54:46.645983 INFO AppDaemon: Initializing HTTP
2024-05-22 21:54:46.646639 INFO AppDaemon: Using 'ws' for event stream
2024-05-22 21:54:46.651612 INFO AppDaemon: Starting API
2024-05-22 21:54:46.655736 INFO AppDaemon: Starting Admin Interface
2024-05-22 21:54:46.656398 INFO AppDaemon: Starting Dashboards
2024-05-22 21:54:46.678490 INFO HASS: Connected to Home Assistant 2024.5.4
2024-05-22 21:54:46.702026 INFO MQTT: Connected to Broker at URL 192.168.1.26:1883
2024-05-22 21:54:46.718291 INFO AppDaemon: Got initial state from namespace mqtt
2024-05-22 21:54:46.719170 INFO MQTT: MQTT Plugin initialization complete
2024-05-22 21:54:46.721389 INFO AppDaemon: App 'nspanel-1' added
2024-05-22 21:54:46.722919 INFO AppDaemon: Found 1 active apps
2024-05-22 21:54:46.723417 INFO AppDaemon: Found 0 inactive apps
2024-05-22 21:54:46.723871 INFO AppDaemon: Found 0 global libraries
2024-05-22 21:54:46.724384 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2024-05-22 21:54:46.725874 INFO AppDaemon: Running on port 5050
2024-05-22 21:54:46.789765 INFO HASS: Evaluating startup conditions
2024-05-22 21:54:46.805507 INFO HASS: Startup condition met: hass state=RUNNING
2024-05-22 21:54:46.805999 INFO HASS: All startup conditions met
2024-05-22 21:54:46.831923 INFO AppDaemon: Got initial state from namespace default
2024-05-22 21:54:48.737600 INFO AppDaemon: Scheduler running in realtime
2024-05-22 21:54:48.744916 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/ to module import path
2024-05-22 21:54:48.745660 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui to module import path
2024-05-22 21:54:48.746611 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path
2024-05-22 21:54:48.747383 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path
2024-05-22 21:54:48.748382 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path
2024-05-22 21:54:48.749288 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path
2024-05-22 21:54:48.759693 INFO AppDaemon: Loading App Module: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py
2024-05-22 21:54:49.012959 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring
2024-05-22 21:54:49.014332 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring
2024-05-22 21:54:49.015460 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring
2024-05-22 21:54:49.016945 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqtt.py - ignoring
2024-05-22 21:54:49.018386 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring
2024-05-22 21:54:49.019644 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring
2024-05-22 21:54:49.020800 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring
2024-05-22 21:54:49.021909 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring
2024-05-22 21:54:49.023254 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring
2024-05-22 21:54:49.024784 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring
2024-05-22 21:54:49.026253 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/apis.py - ignoring
2024-05-22 21:54:49.028024 INFO AppDaemon: Loading app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui
2024-05-22 21:54:49.031075 INFO AppDaemon: Calling initialize() for nspanel-1
2024-05-22 21:54:49.124311 INFO nspanel-1: Starting
2024-05-22 21:54:49.146252 INFO nspanel-1: Input config: {'panelRecvTopic': 'tele/nspanel_salon/RESULT', 'panelSendTopic': 'cmnd/nspanel_salon/CustomSend', 'model': 'eu', 'updateMode': 'auto-notify', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '6:00:00', 'value': 10}, {'time': '23:00:00', 'value': 0}], 'locale': 'fr_FR', 'screensaver': {'type': 'screensaver', 'entities': [{'entity': 'weather.forecast_maison'}, {'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': 'delete'}]}}
2024-05-22 21:54:49.148686 INFO nspanel-1: Loaded config: {'panelRecvTopic': 'tele/nspanel_salon/RESULT', 'panelSendTopic': 'cmnd/nspanel_salon/CustomSend', 'updateMode': 'auto-notify', 'model': 'eu', 'sleepTimeout': 20, 'sleepBrightness': [{'time': '6: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': 'fr_FR', '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_maison'}, {'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': 'delete'}]}, 'hiddenCards': []}
2024-05-22 21:54:49.168682 INFO nspanel-1: gtest123: ['iText.', 'iText.', 'iText.', 'iText.', 'weather.example', 'weather.forecast_maison', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily', 'delete']
2024-05-22 21:54:49.172063 INFO nspanel-1: Registering callbacks for the following items: ['weather.example', 'weather.forecast_maison', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily', 'sensor.weather_forecast_daily']
2024-05-22 21:54:49.188743 INFO nspanel-1: Started (v4.3.3)
2024-05-22 21:54:49.191478 INFO AppDaemon: App initialization complete
2024-05-22 21:54:59.721262 INFO nspanel-1: MQTT callback for: {'topic': 'tele/nspanel_salon/RESULT', 'wildcard': None, 'payload': '{"NSPanel":{"Nextion":"bytes(\'55BB13006576656E742C737461727475702C35332C65\')"}}'}
2024-05-22 21:55:00.724338 INFO nspanel-1: MQTT callback for: {'topic': 'tele/nspanel_salon/RESULT', 'wildcard': None, 'payload': '{"NSPanel":{"Nextion":"bytes(\'24\')"}}'}

@joBr99
Copy link
Owner

joBr99 commented May 22, 2024

Which Nextion Driver to you have installed on tasmota?

Can you please try to delete autoexec.be and autoexec.bed in tasmota and re-run this command:

Backlog UrlFetch https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; SetOption151 0;Restart 1

@Charlesseux07
Copy link
Author

Thank you very much, I have a return of the weather on my screen

@joBr99 joBr99 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration related to configuration question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants