Dank Bernd für die schnelle Reaktion
Ich habe etwas Probleme mit
smarthome.py --start oder --stop -d -s
es hilt nur noch dsa smarthome-py -r
Nach dem ps ax | grep smarthome.py
Nachtrag, ja da ist das Problem. Ich habe immer mit dem --start noch einmal nachgelegt.
Aber der ganze Erfolg ist es noch nicht.
die plugin.yaml dazu :
Ich habe etwas Probleme mit
smarthome.py --start oder --stop -d -s
es hilt nur noch dsa smarthome-py -r
Nach dem ps ax | grep smarthome.py
Code:
[smarthome@R42SmartHomeNG ~]$ ps ax | grep smarthome.py 832 ? Sl 5:07 python3 /usr/local/smarthome/bin/smarthome.py -r 5197 ? Sl 21:20 python3 bin/smarthome.py -r 5415 ? Sl 5:17 python3 /usr/local/smarthome/bin/smarthome.py --start 12752 pts/4 S+ 0:00 grep --color=auto smarthome.py 13003 ? Sl 0:26 python3 /usr/local/smarthome/bin/smarthome.py -r 13028 ? Sl 1:06 /usr/bin/python3 /usr/local/smarthome/bin/smarthome.py 17650 ? Sl 0:21 python3 /usr/local/smarthome/bin/smarthome.py -r 21463 ? Sl 1:08 python3 /usr/local/smarthome/bin/smarthome.py --start [smarthome@R42SmartHomeNG ~]$
Aber der ganze Erfolg ist es noch nicht.
Code:
2021-02-15 19:31:40 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.1.master (84873f74) --------------------
2021-02-15 19:31:40 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome
2021-02-15 19:31:40 WARNING lib.smarthome.main - on Linux-5.10.11-v7l+-armv7l-with-debian-10.8 (pid=1114)
2021-02-15 19:31:41 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'BY', 2 benutzerdefinierte(r) Feiertag(e) definiert
2021-02-15 19:31:43 WARNING lib.module Not loading module Mqtt from section 'mqtt': Module is disabled
2021-02-15 19:31:48 ERROR lib.db DB-API import failed for "pymysql": No module named 'pymysql' - module installed?
2021-02-15 19:31:48 ERROR plugins.database Initialization of database API failed
2021-02-15 19:31:48 ERROR lib.plugin Plugins: Plugin 'database' initialization failed, plugin not loaded
2021-02-15 19:31:48 ERROR lib.smarthome Unhandled exception: 'str' object has no attribute 'keys'
<class 'AttributeError'>
File "/usr/local/smarthome/bin/smarthome.py", line 275, in <module>
sh.start()
File "/usr/local/smarthome/lib/smarthome.py", line 615, in start
self.plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf_basename)
File "/usr/local/smarthome/lib/plugin.py", line 119, in __init__
plugin_name, self.meta = self._get_pluginname_and_metadata(plugin, _conf[plugin])
File "/usr/local/smarthome/lib/plugin.py", line 221, in _get_pluginname_and_metadata
meta = Metadata(self._sh, (plugin_name+plugin_version).replace('.',os.sep), 'plugin')
File "/usr/local/smarthome/lib/metadata.py", line 142, in __init__
self._itemdeflist = list(self.itemdefinitions.keys())
die plugin.yaml dazu :
Code:
database_mysql:
plugin_name: database
# instance: nas
precision: 4
driver: pymysql
connect:
- host:localhost
- user:root
- passwd:smarthome
- db:smarthome
- port:3306


Kommentar