Hallo,
gemäß dieser Doku:
https://github.com/motom001/Do…DE%5D-Konfigurationsdatei
habe ich versucht in meinem DoorPi 2.5.1 einen Reboot per DTMF Tastenkombination zu konfigurieren:
[DTMF]
"159" = out:Virtual_Shutdown,1,0,0.5
"357" = reboot
Das 159-Kommando klappt, das 357 leider nicht. Laut Log kennt er das reboot-Kommando nicht?
Code
2016-10-13 19:14:08,639 [TRACE] [doorpi.conf.config_object] get_string for key "357" in section DTMF (default: ) returns reboot
2016-10-13 19:14:08,650 [ERROR] [doorpi.action.base] error while creating SingleAction from config string: reboot
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doorpi/action/base.py", line 64, in from_string
return importlib.import_module('doorpi.action.SingleActions.'+action_name).get(
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named reboot
Was macht ich falsch?
Danke Tobias
Edit:
Habe es nun alternativ so gelöst:
"357" = os_execute:sudo reboot now
Komisch warum das reboot Kommando aus der Doku nicht funktioniert.