Seite 1 von 1

Exec Bindung Format Problem

Verfasst: 12. Dez 2019 11:47
von Backbe01
Ich habe mir in der Sitemap Switches für den rebbot von OH und RPi angelegt. Diese werden über die Exec-Bindung ausgeführt.

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''
Diese Meldungen hatte ich mit 2.5 nicht. Weiß jemand wofür diese stehen? Die Befehle funktionieren jedenfalls einwandfrei...

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" }
sitemap:

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"]
Things:

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]