Comments (5)
First, no problem :)
About Logs, you can configure where the logs go in AppDaemon configuration, see https://appdaemon.readthedocs.io/en/latest/CONFIGURE.html#log-configuration for more details.
Do you see any errors that AutoMoLi could not be loaded in the appdaemon.log
? Or did you config log related stuff in AppDaemon? If not, any logs should be written to stdout (shown where you start AppDaemon) afaik.
Or are you using something like Hass.io or anything? In this case I would expect all logs to go at least to config/appdaemon/logs/
, but i do not know anything about. Maybe there are other files in this folder?
You can tell me a little more details about your setup and I should be able to help you at least by pointing you to the correct contect fpr this issue :)
from ad-automoli.
Thanks for your help !
I well configured logs like this :
logs: main_log: filename: /config/appdaemon/logs/appdaemon.log access_log: filename: /config/appdaemon/logs/access.log error_log: filename: /config/appdaemon/logs/error.log diag_log: filename: /config/appdaemon/logs/diag.log log_generations: 5 log_size: 1024 format: "{asctime} {levelname:<8} {appname:<10}: {message}" automoli_log: name: AutoMoLi filename: /config/appdaemon/logs/automoli.log
I've not error concerning Automoli in AppDaemons logs but my lights doesn't on when a motion sensor is trigger.
I'm ussing Hassio 0.105.2 (last stable version) on Intel NUC (debian 9).
My lights are Philips Hue Lights and motion sensors are Xiaomi sensors
I checked my logs and there are :
2020-02-09 15:41:44.587323 INFO AppDaemon: App initialization complete
2020-02-09 15:45:34.203889 INFO AppDaemon: Removing module /config/appdaemon/apps/automoli/automoli.py
2020-02-09 15:45:35.211074 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/automoli/automoli.py - ignoring
from ad-automoli.
Ah okay, but afaik that configuration will not do what you expect (logging all logs from AutoMoLi to a separate file). Remove the automoli stuff from the log section completely, then you should get the logs to appdaemon.log
The Log snippet means AppDaemon could not find the configuration for AutoMoli?! Maybe you put it in a wrong file? The configuration for apps are (by default) in a file called apps.yaml
. I do not know where it is on Hass.io, but I guess it could be /config/appdaemon/apps/apps.yaml
from ad-automoli.
OOh yeah ! I've put everything in appdaemon.yaml, now "works fine" in apps.yaml inside config/appdaemon/apps/
Now I've in logs :
2020-02-09 16:50:13.723285 WARNING Error: ------------------------------------------------------------
2020-02-09 16:50:13.724146 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/automoli/automoli.py:
2020-02-09 16:50:13.725022 WARNING Error: ------------------------------------------------------------
2020-02-09 16:50:13.730458 WARNING Error: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 788, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 276, in run_in_executor
response = future.result()
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 580, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/appdaemon/apps/automoli/automoli.py", line 32, in
from adutils import ADutils, hl
ModuleNotFoundError: No module named 'adutils'
from ad-automoli.
Okay, thats a duplicate - lets talk in the other issue #15 about. Closing this here :)
from ad-automoli.
Related Issues (20)
- Option to set times when automoli does not control the light HOT 5
- ImportError: cannot import name 'Room' from 'adutils' HOT 1
- Does not work when there is only a single daytime HOT 1
- TypeError: float() argument must be a string or a real number, not 'NoneType' HOT 1
- Problem with Appdaemon Version 0.12.0 HOT 5
- Unexpected error in worker for App HOT 2
- TypeError since AppDaemon 4.4.2 HOT 2
- Covers
- Add transition for switch to night mode
- [Feature Request] Add new trigger: Smart wall switches as remote for smart bulbs. HOT 1
- AttributeError HOT 2
- Room Error after install Update HOT 4
- Distinguish between weekdays and weekends HOT 2
- Undocumented motion sensor name format expection HOT 3
- Unclear documentation for light value HOT 2
- Suggest different default behaviour for daytimes
- Error setting up automoli when omitting daytimes twice HOT 2
- Automoli broken? HOT 1
- "Bad status line 'SIP/2.0'"
- Upgrading HA AppDaemon addon to 0.8.0 (4.2.0 AppDaemon) breaks AutoMoLi HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ad-automoli.