Getting an error in appdaemon.py, but the error message is very confusing. It says the file is “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py” but that folder doesn’t exist on my RPi.
Wow, now it’s working. I’d tried so many combinations of small changes over 2 days and restarted hassio at least 20 times, so I’m confused on what just got fixed. I was always restarting hass.io and not just appdaemon.
Another beginner question. I’m seeing hello.py loading, but I’m not seeing log output. Tried several variations with no luck. One time, I purposely tried a syntax error and saw output in the log and error log.
2017-09-25 09:13:21.008989 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:14:06.007868 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:21:11.008414 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:21:29.007831 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:21:29.024718 WARNING Logged an error to /config/hadaemon/logs/appdaemon_error.log
2017-09-25 09:21:55.008188 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:22:04.008066 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:22:27.008291 INFO Reloading Module: /config/hadaemon/apps/hello.py
2017-09-25 09:23:47.008412 INFO Reloading Module: /config/hadaemon/apps/hello.py
I’ve tried all these combinations of log statements.
def initialize(self):
self.log("Hello from AppDaemon")
self.log("Hello from AppDaemon", level = "ERROR")
self.log("You are now ready to run Apps!", level = "INFO")
self.log("You are now ready to run Apps!", level = "DEBUG")
self.error("You are now ready to run Apps!")
I would have thought after the app was loaded that the initialize method would fire.