Seit ich zurück auf OH 2.4 wegen diverser Probleme bin, habe ich im Log folgende Error Meldung:
Code: Alles auswählen
2019-12-12 08:54:32.534 [ERROR] [hab.binding.exec.handler.ExecHandler] - An exception occurred while formatting the command line with the current time and input values : 'Format specifier '%2$s''
2019-12-12 08:54:32.539 [ERROR] [hab.binding.exec.handler.ExecHandler] - An exception occurred while formatting the command line with the current time and input values : 'Format specifier '%2$s''
items:
Code: Alles auswählen
Group gSystem // Gruppe Reboot
String OH2_Service "OH2 Service" (gSystem) { channel="exec:command:oh2service:input" }
String PI_Service "PI Service" (gSystem) { channel="exec:command:piservice:input" }
Code: Alles auswählen
Frame label=Systemfunktionen {
Text label="System" icon="Error"{
Frame label="System"{
Switch item=OH2_Service mappings=[restart="Neustart" ]
Switch item=PI_Service mappings=[reboot="Neustart", shutdown="Herunterfahren"]
Code: Alles auswählen
Thing exec:command:oh2service [command="sudo /bin/systemctl %2$s openhab2.service", autorun=true]
Thing exec:command:piservice [command="sudo %2$s", autorun=true]