Hi all,
I’m trying to write appdaemon app in hassio but I don’t understand why it not start. It not write any log in /config/logs/appdaemon and not write any file as implemented in the hello.py code. I posted in the following all the file I manipulated asking you help to solve it. (Moreover I use duckdns service to reach hassio from remote, but I don’t know if I had to add it on the appdaemon.yaml file)
/config/appdaemon.yaml:
--
secrets: # /config/secrets.yaml
log:
accessfile: /config/logs/appdaemon/access.log
errorfile: /config/logs/appdaemon/error.log
logfile: /config/logs/appdaemon/appdaemon.log
log_generations: 3
log_size: 1000000
appdaemon:
app_dir: /config/appdaemon/apps
plugins:
HASS:
type: hass
http:
http://192.168.1.10:5050
admin:
api:
hadashboard:
dash_url: http://192.168.1.10:5050
dash_dir: /config/appdaemon/dashboards
/config/appdaemon/apps/apps.yaml:
hello_world:
module: hello
class: HelloWorld
/config/appdaemon/apps/hello.py
import appdaemon.plugins.hass.hassapi as hass
class HelloWorld(hass.Hass):
def initialize(self):
f = open("/config/testAD.txt","a")
f.write("TEST \n")
f.close()
self.log("Hello from AppDaemon")
self.log("You are now ready to run Apps!")
thank you very much
Best regards