Q from Newbie: where to find the configuration files appdaemon.yaml and apps.yaml?

Hi there!

I am currently setting up my first HA system, so far I think it es exactly what I am searching for. But I currently am stuck, I think I am missing some basic knowledge of the concept. I think it is quite easy to set me on the right path…

I am using a RPi 4 with Home Assistant OS and this SW:

  • Core 2024.1.1
  • Supervisor 2023.12.0
  • Operating System 11.3
  • Frontend 20240104.0

I would like to use an NSPanel, so I followed (Configure MQTT - NsPanel Lovelace UI Docs) and flashed Tasmota, uploaded Berry driver, flashed the Nextion firmware and configured it. So I get this “Waiting for content…” on the display.

I installed AppDaemon, the end of the LOG-file shows

2024-01-06 13:50:59.390248 INFO hello_world: You are now ready to run Apps!

I also installed HACS and the NSPanel Lovelace UI Backend.

Now I am stuck in the configuration of my HA system. The documentation asks to edit appdaemon.yaml and apps.yaml, but I do not know where to find it or where to generate it.

BTW, I do not use the MQTT-server in HA, I am using one on another system and the add-on File editor.
I am pretty sure, this is a quite dumb question, thanks anyway for your help!

KR,
Christof

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

e[34m-----------------------------------------------------------e[0m
e[34m Add-on: AppDaemone[0m
e[34m Python Apps and Dashboard using AppDaemon 4.x for Home Assistante[0m
e[34m-----------------------------------------------------------e[0m
e[34m Add-on version: 0.16.0e[0ma
e[32m You are running the latest version of this add-on.e[0m
e[34m System: Home Assistant OS 11.3  (aarch64 / raspberrypi4-64)e[0m
e[34m Home Assistant Core: 2024.1.1e[0m
e[34m Home Assistant Supervisor: 2023.12.0e[0m
e[34m-----------------------------------------------------------e[0m
e[34m Please, share the above information when looking for helpe[0m
e[34m or support in, e.g., GitHub, forums or the Discord chat.e[0m
e[34m-----------------------------------------------------------e[0m
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 7.9 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
[14:30:49] INFO: e[32mStarting AppDaemon...e[0m
s6-rc: info: service legacy-services successfully started
2024-01-06 14:30:57.091277 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2024-01-06 14:30:57.093483 INFO AppDaemon: Python version is 3.11.6
2024-01-06 14:30:57.095051 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml
2024-01-06 14:30:57.095940 INFO AppDaemon: Added log: AppDaemon
2024-01-06 14:30:57.096940 INFO AppDaemon: Added log: Error
2024-01-06 14:30:57.097395 INFO AppDaemon: Added log: Access
2024-01-06 14:30:57.097977 INFO AppDaemon: Added log: Diag
2024-01-06 14:30:57.598716 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2024-01-06 14:30:58.086268 INFO HASS: HASS Plugin Initializing
2024-01-06 14:30:58.086663 WARNING HASS: ha_url not found in HASS configuration - module not initialized
2024-01-06 14:30:58.087579 INFO HASS: HASS Plugin initialization complete
2024-01-06 14:30:58.088679 INFO AppDaemon: Initializing HTTP
2024-01-06 14:30:58.089673 INFO AppDaemon: Using 'ws' for event stream
2024-01-06 14:30:58.100079 INFO AppDaemon: Starting API
2024-01-06 14:30:58.105116 INFO AppDaemon: Starting Admin Interface
2024-01-06 14:30:58.106043 INFO AppDaemon: Starting Dashboards
2024-01-06 14:31:28.688770 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:31:28.849943 INFO AppDaemon: App 'hello_world' added
2024-01-06 14:31:28.852107 INFO AppDaemon: Found 1 active apps
2024-01-06 14:31:28.852878 INFO AppDaemon: Found 0 inactive apps
2024-01-06 14:31:28.854103 INFO AppDaemon: Found 0 global libraries
2024-01-06 14:31:28.855157 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2024-01-06 14:31:28.859721 INFO AppDaemon: Running on port 5050
2024-01-06 14:31:42.527684 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:31:47.604071 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:31:52.616523 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:31:57.629426 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:09.042824 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:15.525041 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:22.198165 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:27.241849 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:32.263398 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:37.287760 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:42.314718 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:47.336299 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:52.355316 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2024-01-06 14:32:57.445965 INFO HASS: Connected to Home Assistant 2024.1.1
2024-01-06 14:32:57.620799 INFO HASS: Evaluating startup conditions
2024-01-06 14:32:57.637464 INFO HASS: Startup condition met: hass state=RUNNING
2024-01-06 14:32:57.638073 INFO HASS: All startup conditions met
2024-01-06 14:32:57.691491 INFO AppDaemon: Got initial state from namespace default
2024-01-06 14:32:59.451844 INFO AppDaemon: Scheduler running in realtime
2024-01-06 14:32:59.459168 INFO AppDaemon: Adding /config/apps to module import path
2024-01-06 14:32:59.462388 INFO AppDaemon: Loading App Module: /config/apps/hello.py
2024-01-06 14:32:59.574843 INFO AppDaemon: Loading app hello_world using class HelloWorld from module hello
2024-01-06 14:32:59.579224 INFO AppDaemon: Calling initialize() for hello_world
2024-01-06 14:32:59.795058 INFO hello_world: Hello from AppDaemon
2024-01-06 14:32:59.797318 INFO hello_world: You are now ready to run Apps!
2024-01-06 14:32:59.800723 INFO AppDaemon: App initialization complete

I think, I somehow face the same problem than Balu in this topic:

Base Files and folders duplicated somehow. Why, and how to fix?

When you I stalled AppDaemon, it should have created a folder called ‘appdaemon’ in the home assistant directory. The appdaemon.yaml is in that folder. There should be a subfolder in the AppDaemon folder called ‘apps’ with the apps.yaml file.

Thanks for the reply!

I had the files exactly at that place, nevertheless, the display still says “Waiting for content…”

In the meantime, I set MQTT to the HA, just to check if there is a problem. from the MQTT log it can be seen that the Panel connects and also a connection from the docker:

2024-01-06 18:30:25: New client connected from 192.168.x.x:64805 as DVES_xxxxxx (p2, c1, k30, u'mqtt').
2024-01-06 18:32:02: New connection from 172.30.32.2:56548 on port 1883.
2024-01-06 18:32:02: Client <unknown> closed its connection.

Looking at the MQTT messages, the Panel is asking for the configuration, but no answer:

tele/tasmota_nspanel2/RESULT {"CustomRecv":"event,startup,53,eu"}
tele/tasmota_nspanel2/STATE {"Time":"2024-01-06T18:35:28","Uptime":"0T00:05:08","UptimeSec":308,"Heap":126,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":219},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"xxx","BSSId":"xxx","Channel":3,"Mode":"11n","RSSI":84,"Signal":-58,"LinkCount":1,"Downtime":"0T00:00:03"}}
tele/tasmota_nspanel2/SENSOR {"Time":"2024-01-06T18:35:29","ANALOG":{"Temperature1":13.9},"TempUnit":"C"}
tele/tasmota_nspanel2/RESULT {"CustomRecv":"event,startup,53,eu"}
tele/tasmota_nspanel2/RESULT {"CustomRecv":"event,startup,53,eu"}
tele/tasmota_nspanel2/RESULT {"CustomRecv":"event,startup,53,eu"}

/homeassistant/appdaemon/apps/apps.yaml is this:

---
nspanel2:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/tasmota_nspanel2/RESULT"
    panelSendTopic: "cmnd/tasmota_nspanel2/CustomSend"
    model: eu

and /homeassistant/appdaemon/appdeamon.yaml is

---
secrets: /homeassistant/secrets.yaml
appdaemon:
  latitude: x
  longitude: x
  elevation: x
  time_zone: Europe/Vienna
  app_dir: /homeassistant/appdaemon/apps/ # !!! This is really important for AppDaemon HA Addon >= 15
  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.75.30
      client_port: 1883
      client_user: "mqtt"
      client_password: "mqttpassword"
      client_topics: NONE
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:

So I am still lost in the HA universe :wink:

KR,
Christof

Well, I think I solved it (at least for now)

The reason was, that I did not use VS Studio Code editor but the File editor. And so I did not place the files in the right directory which is given in (Configure MQTT - NsPanel Lovelace UI Docs) to be /addon_configs/a0d7b954_appdaemon

So I installed the Studio Code editor and now I can see something meaningfull on the NSPanel.

1 Like

Ha…that got me looking and realizing that I still had an ‘appdaemon’ folder in the main config folder, but I also had one in the new ‘addon_configs’ folder.

Did you resolve this? I have exactly the same issue. No ‘appdaemon’ folder in the home assistant directory, hence no access to the ‘appdaemon.yaml’ file in that folder.

I’ve tried uninstalling and re-installing the appdaemon add-on with no change.

The start-up log for this add-on has a line referring to the config file location:

2024-02-12 09:02:27.871976 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml

That path is clearly not one associated with the new ‘homeassistant’ main configuration file folder.

SOLVED: the release notes for v0.15 of the appdaemon add-on alerts that the ‘appdaemon’ add-on folder has now been moved to a folder called ‘addon_configs’ in the parent folder above the new ‘homeassistant’ folder.

https://github.com/hassio-addons/addon-appdaemon/releases/tag/v0.15.0

2 Likes