ich habe Roberts neues Image installiert und habe ein merkwürdiges Problem mit dem Enocean plugin.
Bei einem Neustart des Rechners kann Enocean nicht initialisiert werden. Im log-file finde ich den Errno 13:
Code:
2017-08-11 19:57:23 WARNING Main -------------------- Init SmartHomeNG 1.3.d250d91.dev -------------------- 2017-08-11 19:57:23 INFO Main Init Scheduler 2017-08-11 19:57:23 INFO Main Init Plugins 2017-08-11 19:57:24 WARNING Main CLI: You should set a password for this plugin. 2017-08-11 19:57:24 INFO Main enocean: Stick TX ID configured via plugin.conf to: ffbad000 2017-08-11 19:57:24 ERROR Main Plugin enocean exception: could not open port /dev/ttyS4: [Errno 13] Keine Berechtigung: '/dev/ttyS4' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 275, in open self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK) PermissionError: [Errno 13] Keine Berechtigung: '/dev/ttyS4' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/smarthome/lib/plugin.py", line 90, in __init__ plugin_thread = PluginWrapper(smarthome, plugin, classname, classpath, args, instance) File "/usr/local/smarthome/lib/plugin.py", line 144, in __init__ exec("self.plugin.__init__(smarthome{0}{1})".format("," if len(arglist) else "", argstring)) File "<string>", line 1, in <module> File "/usr/local/smarthome/plugins/enocean/__init__.py", line 125, in __init__ self._tcm = serial.Serial(serialport, 57600, timeout=0.5) File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 261, in __init__ self.open() File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 278, in open raise SerialException("could not open port %s: %s" % (self._port, msg)) serial.serialutil.SerialException: could not open port /dev/ttyS4: [Errno 13] Keine Berechtigung: '/dev/ttyS4'
Code:
sudo systemctl restart smarthome
Code:
2017-08-11 21:10:18 WARNING Main -------------------- Init SmartHomeNG 1.3.d250d91.dev -------------------- 2017-08-11 21:10:18 INFO Main Init Scheduler 2017-08-11 21:10:18 INFO Main Init Plugins 2017-08-11 21:10:18 WARNING Main CLI: You should set a password for this plugin. 2017-08-11 21:10:18 INFO Main enocean: Stick TX ID configured via plugin.conf to: ffbad000 2017-08-11 21:10:18 INFO Main enocean: eep-parser instantiated 2017-08-11 21:10:18 INFO Main Init Items 2017-08-11 21:10:18 INFO Main Items: 49 2017-08-11 21:10:18 INFO Main Start Logics
Das Problem müssten doch alle mit dem Image haben.
Habt ihr Hinweise, wo ich hinschauen muss ... oder noch besser wie ich das Problem beheben kann?
Danke
Gerd
Einen Kommentar schreiben: