ich bin derzeit an der Umstellung auf OH3. In OH2 hatte ich einen String item, mit ich den pi Neustarten oder ausschalten konnte. Ich habe versucht diese items, things, rules, sitemaps in OH3 zu integrieren. Leider erscheint im log nur "..item...reboot", aber leider passiert nix!

Da ich ein Linux DAU bin, kann mir evtl. jemand von Euch helfen?
Ich poste mal meine Dateien:
Thing
Code: Alles auswählen
Thing exec:command:ohservice [command="sudo /bin/systemctl %2$s openhab.service", autorun=true]
Thing exec:command:piservice [command="sudo %2$s", autorun=true]
Code: Alles auswählen
String Flag_System "System" <switch>
Code: Alles auswählen
rule "Reboot openHAB"
when
Item Flag_System received command "Reboot"
then
logInfo("Flag_System", "Rebooting openHAB")
executeCommandLine("sudo@@reboot", 60000)
end
rule "Shut down openHAB"
when
Item Flag_System received command "PowerOff"
then
logInfo("Flag_System", "Shutting down openHAB")
executeCommandLine("sudo@@poweroff")
end
Code: Alles auswählen
Frame label=Systemfunktionen {
Text label="System" icon="Error"{
Frame label="System"{
Selection item=Flag_System label="System" mappings=[NULL="Active", Reboot="Neustart", PowerOff="Herunterfahren"]