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

Display layout broken after Nextion update to 3.8.3/3.9.4 #62

Closed phoenixtechnam closed 1 year ago

phoenixtechnam commented 1 year ago

PROBLEM DESCRIPTION

I am running Nspanel v3.7.3. When updating to a newer version (e.g. 3.8.3 or 3.9.4) the display layout appears broken on the devices. AppDeamon logs schow nothing unusual.

apps.yaml config

  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    model: us-p
    panelRecvTopic: "/office/nspanel/tele/RESULT"
    panelSendTopic: "/office/nspanel/cmnd/CustomSend"
    sleepTimeout: 10
    screenBrightness: 100
    sleepBrightness:
      - time: "7:00:00"
        value: 100
      - time: "00:00:00"
        value: 0
    screensaver:
      entity: weather.home
      statusIcon1:
          entity: binary_sensor.gate_sensor
          icon: mdi:gate
      statusIcon2:
          entity: binary_sensor.garage_door
          icon: mdi:garage-variant
      theme:
        autoWeather: True
      alternativeLayout: false
    cards:
      - type: cardGrid
        key: office
        title: Office
        entities:
          - entity: switch.workstation_pc
            name: Workstation
            icon: mdi:desktop-tower-monitor
          - entity: light.office_main_lights
            name: Light
            icon: mdi:ceiling-light
          - entity: switch.office_fan
            name: Fan
            icon: mdi:fan
          - entity: light.office_rgbw_controller
            name: Led Strip
            icon: mdi:led-strip-variant
          - entity: input_select.office_aircon
            icon: mdi:air-conditioner
          - entity: input_boolean.alarm_signals
            name: Emergency
            icon: mdi:alarm-light

REQUESTED INFORMATION

Kindly help me out to fix this.

TO REPRODUCE

Update NSPANEL in HACS, restart AppDaemon, Flash Nextion

EXPECTED BEHAVIOUR

Screensaver and cards should be shown correctly

SCREENSHOTS

image image

ADDITIONAL CONTEXT

PANEL / FIRMWARE VERION

EddyK69 commented 1 year ago

Had the same. After restart of AppDaemon issues were gone...

phoenixtechnam commented 1 year ago

I tried restarting the AddDeamon a couple of times, does not help

joBr99 commented 1 year ago

Please provide the AppDaemon log (after you restarted the addon until the panel is showing something) without the log I'm unable to tell you what's going on on your panel.

But general it's the backend that isn't updated (or the missing restart of the appdaemon addon) or it's outdated firmware on the display. Run FlashNextion http://nspanel.pky.eu/lui-us-p-release.tft in the tasmota console to update it manually and make sure that the progress bar for the flashing is showing up on the panel.

phoenixtechnam commented 1 year ago

Here is the AppDeamon log. office-nspanel is the only one running Nextion driver 3.9.4 and shows the broken layout. The others are still running 3.7.3 and they still work fine. All devices are flashed with Tasmota 12.3.1. Home Assistant component is updated to 3.9.4. AppDaemon container has been restarted a couple of times.

2023-01-31 13:14:44.855285 INFO office-nspanel: Loaded config: {'panelRecvTopic': '/office/nspanel/tele/RESULT', 'panelSendTopic': '/office/nspanel/cmnd/CustomSend', 'updateMode': 'auto-notify', 'model': 'us-p', 'sleepTimeout': 10, 'sleepBrightness': [{'time': '7:00:00', 'value': 100}, {'time': '00: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': 'cardGrid', 'key': 'office', 'title': 'Office', 'entities': [{'entity': 'switch.workstation_pc', 'name': 'Workstation', 'icon': 'mdi:desktop-tower-monitor'}, {'entity': 'light.office_main_lights', 'name': 'Light', 'icon': 'mdi:ceiling-light'}, {'entity': 'switch.office_fan', 'name': 'Fan', 'icon': 'mdi:fan'}, {'entity': 'light.office_rgbw_controller', 'name': 'Led Strip', 'icon': 'mdi:led-strip-variant'}, {'entity': 'input_select.office_aircon', 'icon': 'mdi:air-conditioner'}, {'entity': 'input_boolean.alarm_signals', 'name': 'Emergency', 'icon': 'mdi:alarm-light'}]}, {'type': 'cardGrid', 'key': 'garden', 'title': 'Patio & Garden', 'entities': [{'entity': 'light.terrace_flood_light', 'name': 'Patio White LED', 'icon': 'mdi:led-strip-variant'}, {'entity': 'light.patio_led_strip', 'name': 'Patio Color LED', 'icon': 'mdi:led-strip-variant'}, {'entity': 'light.garden_flood_light', 'name': 'Garden Light', 'icon': 'mdi:spotlight'}, {'entity': 'switch.irrigation_valve', 'name': 'Irrigation Valve', 'icon': 'mdi:pipe-valve'}]}, {'type': 'cardGrid', 'key': 'home', 'title': 'Entrance & Living', 'entities': [{'entity': 'service.switch.turn_on', 'name': 'Entrance Gate', 'icon': 'mdi:gate', 'data': {'entity_id': 'switch.entrance_gate_trigger'}, 'status': 'binary_sensor.gate_sensor'}, {'entity': 'service.switch.turn_on', 'name': 'Garage Door', 'icon': 'mdi:garage-variant', 'data': {'entity_id': 'switch.garage_door_trigger'}, 'status': 'binary_sensor.garage_door'}, {'entity': 'light.entrance_gate_flood_light', 'name': 'Flood Light', 'icon': 'mdi:spotlight'}, {'entity': 'light.entrance_door_lights', 'name': 'Door Light', 'icon': 'mdi:coach-lamp'}, {'entity': 'light.living_room_main_lights', 'name': 'Ceiling Lights', 'icon': 'mdi:lightbulb-group'}, {'entity': 'input_boolean.alarm_signals', 'name': 'Emergency', 'icon': 'mdi:alarm-light'}]}, {'type': 'cardAlarm', 'title': 'Smart Alarm', 'entity': 'alarm_control_panel.smart_alarm'}], 'screensaver': {'type': 'screensaver', 'entity': 'weather.home', 'weatherUnit': 'celsius', 'forecastSkip': 0, 'weatherOverrideForecast1': None, 'weatherOverrideForecast2': None, 'weatherOverrideForecast3': None, 'weatherOverrideForecast4': None, 'doubleTapToUnlock': False, 'alternativeLayout': False, 'defaultCard': None, 'key': 'screensaver', 'statusIcon1': {'entity': 'binary_sensor.gate_sensor', 'icon': 'mdi:gate'}, 'statusIcon2': {'entity': 'binary_sensor.garage_door', 'icon': 'mdi:garage-variant'}, 'theme': {'autoWeather': True}}, 'hiddenCards': []}
2023-01-31 13:14:44.858760 INFO office-nspanel: Sending MQTT Message: pageType~pageStartup
2023-01-31 13:14:44.864626 INFO garage-innerdoor-outside-nspanel: MQTT callback for: {'topic': '/garage/innerdoor-outside-nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:44.865591 INFO office-nspanel: Registering callbacks for the following items: ['switch.workstation_pc', 'light.office_main_lights', 'switch.office_fan', 'light.office_rgbw_controller', 'input_select.office_aircon', 'input_boolean.alarm_signals', 'light.terrace_flood_light', 'light.patio_led_strip', 'light.garden_flood_light', 'switch.irrigation_valve', 'service.switch.turn_on', 'binary_sensor.gate_sensor', 'service.switch.turn_on', 'binary_sensor.garage_door', 'light.entrance_gate_flood_light', 'light.entrance_door_lights', 'light.living_room_main_lights', 'input_boolean.alarm_signals', 'alarm_control_panel.smart_alarm', 'weather.home', 'binary_sensor.gate_sensor', 'binary_sensor.garage_door']
2023-01-31 13:14:44.866426 INFO garage-innerdoor-outside-nspanel: Update Pre-Check failed Tasmota Driver Version: 8 Panel Version: None
2023-01-31 13:14:44.879944 INFO office-nspanel: Started
2023-01-31 13:14:44.880575 INFO AppDaemon: App initialization complete
2023-01-31 13:14:45.911075 INFO master-bedroom-nspanel: MQTT callback for: {'topic': '/master-bedroom/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,46,us-p"}'}
2023-01-31 13:14:45.911540 INFO garage-innerdoor-outside-nspanel: MQTT callback for: {'topic': '/garage/innerdoor-outside-nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,46,us-p"}'}
2023-01-31 13:14:45.912026 INFO entrance-nspanel: MQTT callback for: {'topic': '/entrance/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,46,us-p"}'}
2023-01-31 13:14:45.912454 INFO garage-innerdoor-inside-nspanel: MQTT callback for: {'topic': '/living-room/garage_innerdoor_inside_nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:45.913496 INFO office-nspanel: MQTT callback for: {'topic': '/office/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:45.914040 INFO garage-innerdoor-outside-nspanel: Received Message from Screen: event,startup,46,us-p
2023-01-31 13:14:45.915072 INFO master-bedroom-nspanel: Received Message from Screen: event,startup,46,us-p
2023-01-31 13:14:45.915993 INFO entrance-nspanel: Received Message from Screen: event,startup,46,us-p
2023-01-31 13:14:45.916316 INFO garage-innerdoor-inside-nspanel: Update Pre-Check failed Tasmota Driver Version: 8 Panel Version: None
2023-01-31 13:14:45.922646 INFO office-nspanel: Update Pre-Check failed Tasmota Driver Version: 8 Panel Version: None
2023-01-31 13:14:45.923149 INFO entrance-nspanel: Sending MQTT Message: X
2023-01-31 13:14:45.930140 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: X
2023-01-31 13:14:45.931024 INFO entrance-nspanel: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 46
2023-01-31 13:14:45.931577 INFO garage-innerdoor-inside-nspanel: MQTT callback for: {'topic': '/living-room/garage_innerdoor_inside_nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,46,us-p"}'}
2023-01-31 13:14:45.932015 INFO master-bedroom-nspanel: Sending MQTT Message: X
2023-01-31 13:14:45.935392 INFO garage-innerdoor-inside-nspanel: Received Message from Screen: event,startup,46,us-p
2023-01-31 13:14:45.935878 INFO office-nspanel: MQTT callback for: {'topic': '/office/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,49,us-p"}'}
2023-01-31 13:14:45.937508 INFO office-nspanel: Startup Event
2023-01-31 13:14:45.938598 INFO office-nspanel: Received Message from Screen: event,startup,49,us-p
2023-01-31 13:14:45.939097 INFO garage-innerdoor-outside-nspanel: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 46
2023-01-31 13:14:45.939735 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: X
2023-01-31 13:14:45.940424 INFO master-bedroom-nspanel: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 46
2023-01-31 13:14:45.942043 INFO office-nspanel: Startup Event
2023-01-31 13:14:45.942631 INFO office-nspanel: Sending MQTT Message: X
2023-01-31 13:14:45.945655 INFO office-nspanel: Startup Event
2023-01-31 13:14:45.949340 INFO garage-innerdoor-inside-nspanel: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 46
2023-01-31 13:14:45.951352 INFO office-nspanel: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 49
2023-01-31 13:14:45.953448 INFO office-nspanel: Startup Event
2023-01-31 13:14:45.955392 INFO master-bedroom-nspanel: Sending MQTT Message: time~13:14~
2023-01-31 13:14:45.958822 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: time~13:14~
2023-01-31 13:14:45.960381 INFO entrance-nspanel: Sending MQTT Message: time~13:14~
2023-01-31 13:14:45.966923 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: time~13:14~
2023-01-31 13:14:45.968524 INFO master-bedroom-nspanel: Sending MQTT Message: date~Tuesday, 31. January 2023
2023-01-31 13:14:45.969080 INFO office-nspanel: Previous message repeated 1 times
2023-01-31 13:14:45.969239 INFO office-nspanel: Sending MQTT Message: time~13:14~
2023-01-31 13:14:45.972390 INFO entrance-nspanel: Sending MQTT Message: date~Tuesday, 31. January 2023
2023-01-31 13:14:45.974219 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: date~Tuesday, 31. January 2023
2023-01-31 13:14:45.979153 INFO master-bedroom-nspanel: Sending MQTT Message: timeout~10
2023-01-31 13:14:45.981758 INFO entrance-nspanel: Sending MQTT Message: timeout~10
2023-01-31 13:14:45.982361 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: date~Tuesday, 31. January 2023
2023-01-31 13:14:45.983280 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: timeout~10
2023-01-31 13:14:45.984838 INFO office-nspanel: Sending MQTT Message: date~Tuesday, 31. January 2023
2023-01-31 13:14:45.988326 INFO master-bedroom-nspanel: Sending MQTT Message: dimmode~10~100~6371
2023-01-31 13:14:45.991121 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: dimmode~10~100~6371
2023-01-31 13:14:45.992044 INFO entrance-nspanel: Sending MQTT Message: dimmode~10~100~6371
2023-01-31 13:14:45.993446 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: timeout~10
2023-01-31 13:14:45.995026 INFO office-nspanel: Sending MQTT Message: timeout~10
2023-01-31 13:14:45.996810 INFO office-nspanel: Started rendering of page None with type screensaver
2023-01-31 13:14:46.001883 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: dimmode~10~100~6371
2023-01-31 13:14:46.006176 INFO office-nspanel: Previous message repeated 2 times
2023-01-31 13:14:46.006598 INFO office-nspanel: Sending MQTT Message: dimmode~99~100~6371
2023-01-31 13:14:46.009367 INFO entrance-nspanel: Sending MQTT Message: pageType~screensaver
2023-01-31 13:14:46.009706 INFO master-bedroom-nspanel: Sending MQTT Message: pageType~screensaver
2023-01-31 13:14:46.010463 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: pageType~screensaver
2023-01-31 13:14:46.013195 INFO office-nspanel: Started rendering of page None with type screensaver
2023-01-31 13:14:46.023811 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: pageType~screensaver
2023-01-31 13:14:46.024619 INFO office-nspanel: Previous message repeated 1 times
2023-01-31 13:14:46.024969 INFO office-nspanel: Sending MQTT Message: pageType~screensaver
2023-01-31 13:14:46.050534 INFO entrance-nspanel: Sending MQTT Message: weatherUpdate~���~23.9��C~Tue~���~26.5��C~Wed~���~29.6��C~Thu~���~29.9��C~Fri~���~29.8��C~���~53 %~���~17299~���~17299
2023-01-31 13:14:46.053069 INFO master-bedroom-nspanel: Sending MQTT Message: weatherUpdate~���~23.9��C~Tue~���~26.5��C~Wed~���~29.6��C~Thu~���~29.9��C~Fri~���~29.8��C~���~53 %~���~17299~���~17299
2023-01-31 13:14:46.054576 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: weatherUpdate~���~23.9��C~Tue~���~26.5��C~Wed~���~29.6��C~Thu~���~29.9��C~Fri~���~29.8��C~���~53 %~���~17299~���~17299
2023-01-31 13:14:46.058323 INFO entrance-nspanel: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~50400~50400~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535
2023-01-31 13:14:46.065073 INFO master-bedroom-nspanel: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~50400~50400~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535
2023-01-31 13:14:46.065509 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~50400~50400~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535
2023-01-31 13:14:46.069756 INFO entrance-nspanel: MQTT callback for: {'topic': '/entrance/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:46.075580 INFO office-nspanel: Sending MQTT Message: weatherUpdate~���~23.9��C~Tue~���~26.5��C~Wed~���~29.6��C~Thu~���~29.9��C~Fri~���~29.8��C~~~���~17299~���~17299
2023-01-31 13:14:46.078177 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: weatherUpdate~���~23.9��C~Tue~���~26.5��C~Wed~���~29.6��C~Thu~���~29.9��C~Fri~���~29.8��C~���~53 %~���~17299~���~17299
2023-01-31 13:14:46.078848 INFO master-bedroom-nspanel: MQTT callback for: {'topic': '/master-bedroom/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:46.079981 INFO entrance-nspanel: Update Pre-Check sucessful Tasmota Driver Version: 8 Panel Version: 46
2023-01-31 13:14:46.082858 INFO garage-innerdoor-outside-nspanel: MQTT callback for: {'topic': '/garage/innerdoor-outside-nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:46.084427 INFO master-bedroom-nspanel: Update Pre-Check sucessful Tasmota Driver Version: 8 Panel Version: 46
2023-01-31 13:14:46.087530 INFO office-nspanel: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~50400~50400~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535
2023-01-31 13:14:46.089449 INFO garage-innerdoor-outside-nspanel: Update Pre-Check sucessful Tasmota Driver Version: 8 Panel Version: 46
2023-01-31 13:14:46.094663 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~50400~50400~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535
2023-01-31 13:14:46.099445 INFO office-nspanel: MQTT callback for: {'topic': '/office/nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:46.100097 INFO garage-innerdoor-inside-nspanel: MQTT callback for: {'topic': '/living-room/garage_innerdoor_inside_nspanel/tele/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"8"}'}
2023-01-31 13:14:46.100966 INFO office-nspanel: Update Pre-Check sucessful Tasmota Driver Version: 8 Panel Version: 49
2023-01-31 13:14:46.105620 INFO garage-innerdoor-inside-nspanel: Update Pre-Check sucessful Tasmota Driver Version: 8 Panel Version: 46
2023-01-31 13:15:01.014915 INFO office-nspanel: Sending MQTT Message: time~13:15~
2023-01-31 13:15:01.015629 INFO garage-innerdoor-outside-nspanel: Sending MQTT Message: time~13:15~
2023-01-31 13:15:01.019340 INFO master-bedroom-nspanel: Sending MQTT Message: time~13:15~
2023-01-31 13:15:01.021809 INFO entrance-nspanel: Sending MQTT Message: time~13:15~
2023-01-31 13:15:01.024242 INFO garage-innerdoor-inside-nspanel: Sending MQTT Message: time~13:15~
joBr99 commented 1 year ago

Okay your firmware on your display is okay event,startup,49,us-p.

However your backend is sending the messages that are expected to be send from the 3.7.3 Version.

Are you using HomeAssistant OS? In case you do please go to hacs, and redownload the current version. (and restart appdaemon afterwards)

In case you are using your own docker containers, please post your compose file.

phoenixtechnam commented 1 year ago

I re-downloaded the backend in HACS image

Then restarted APPDaemon docker container. This is the container config (Im using UNRAID):

<?xml version="1.0"?>
<Container version="2">
  <Name>HA-AppDaemon</Name>
  <Repository>acockburn/appdaemon</Repository>
  <Registry>https://registry.hub.docker.com/r/acockburn/appdaemon</Registry>
  <Network>bridge</Network>
  <MyIP/>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Project>http://appdaemon.readthedocs.io/</Project>
  <Overview>HADashboard and Python apps for Home Assistant.&#xD;
&#xD;
Note that you MUST manually edit your auto-generated appdaemon.yaml file to add a few required settings.&#xD;
See support threat here for an example: https://lime-technology.com/forums/topic/72041-support-appdaemon-hadashboard-corneliousjd-repo/</Overview>
  <Category>HomeAutomation: Other: </Category>
  <WebUI>http://[IP]:[PORT:5050]</WebUI>
  <TemplateURL>https://raw.githubusercontent.com/CorneliousJD/Docker-Templates/master/appdaemon.xml</TemplateURL>
  <Icon>https://raw.githubusercontent.com/CorneliousJD/Docker-Templates/master/icons/appdaemon.png</Icon>
  <ExtraParams/>
  <PostArgs/>
  <CPUset/>
  <DateInstalled>1663772170</DateInstalled>
  <DonateText/>
  <DonateLink/>
  <Networking>
    <Mode>bridge</Mode>
    <Publish>
      <Port>
        <HostPort>5050</HostPort>
        <ContainerPort>5050</ContainerPort>
        <Protocol>tcp</Protocol>
      </Port>
    </Publish>
  </Networking>
  <Data>
    <Volume>
      <HostDir>/mnt/user/appdata/ha-appdaemon</HostDir>
      <ContainerDir>/conf</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
  <Environment>
    <Variable>
      <Value>http://10.0.0.5:8123</Value>
      <Name>HA_URL</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Value>
      <Name>TOKEN</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>http://$HOSTNAME:5050</Value>
      <Name>DASH_URL</Name>
      <Mode/>
    </Variable>
  </Environment>
  <Labels/>
  <Config Name="Web UI Port" Target="5050" Default="5050" Mode="tcp" Description="" Type="Port" Display="always" Required="false" Mask="false">5050</Config>
  <Config Name="Configuration Path" Target="/conf" Default="/mnt/user/appdata/appdaemon" Mode="rw" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/ha-appdaemon</Config>
  <Config Name="Home Assistant URL" Target="HA_URL" Default="" Mode="" Description="Your local Home Assistant URL. (NO trailing / at the end!)" Type="Variable" Display="always" Required="true" Mask="false">http://10.0.0.5:8123</Config>
  <Config Name="Token" Target="TOKEN" Default="" Mode="" Description="Home Assistant Long Lived Access Tokens" Type="Variable" Display="always" Required="false" Mask="true">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Config>
  <Config Name="Dashboard URL" Target="DASH_URL" Default="" Mode="" Description="This should be left as-is." Type="Variable" Display="advanced" Required="false" Mask="false">http://$HOSTNAME:5050</Config>
</Container>
joBr99 commented 1 year ago

HACS is running inside of your HomeAssistant container (and downloading to it), it doesn't have access to your AppDaemon Container.

You need to have a properly configured Volume Mount between the two containers to be able to use HACS.

As you can see in the following example for compose the appdaemon folder is inside of the homeassistant folder to be able to access the files from homeassistant.

version: "3.5"
services:
  homeassistant:
    image: ghcr.io/home-assistant/home-assistant:stable
    container_name: homeassistant
    network_mode: host
    volumes:
      - ./docker-data/homeassistant/:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - TZ=Europe/Berlin
    privileged: true
    restart: unless-stopped

  appdaemon:
    container_name: appdaemon
    image: acockburn/appdaemon:latest
    environment:
      - HA_URL=http://your-homeassistant-url:8123
      - TOKEN="xxxxxx"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./docker-data/homeassistant/appdaemon:/conf
    depends_on:
      - homeassistant
    restart: unless-stopped

Post the config of the HA Container aswell and I can tell you the path you need to have in the appdaemon container.

phoenixtechnam commented 1 year ago

@joBr99 thanks for your help. I realized that my AppDaemon setup was not correct by having the AppDaemon config folder outside of Home Assistant's config folder. Changed locations now, restarted AppDaemon, flashed the latest Nextion firmware and all is working now.

Last question: When backend is updated, NSPanel shows a message "Do you want to update display firmware?". When clicking OK, the device wants to download the firmware from the internet. However, download fails because I do not allow my IOT devices to go online. NSPanel then goes into an undefined state and needs to be re-started and then flashed manually. Is there a way to change that internal OTA URL, e.g. to the home assistant shared folder ?

I currently use FlashNextion http://homeassistant.local:8123/local/firmware/nspanel-us-p.tft

joBr99 commented 1 year ago

currently not; opened a feature request for it

joBr99 commented 1 year ago

implemented