Hi,
Udo’s remarks helped me to solve the problem.
I did the following:
sudo visudo -f /etc/sudoers.d/010_pi-nopasswd
Adding following lines
openhab ALL=(ALL) NOPASSWD: ALL
After I had done that the following rule worked:
rule “Manueller_reboot”
when
Item reboot changed from OFF to ON
then
say(“starte System neu”)
executeCommandLine(‘“sudo” “reboot”’, 100)
// notifyMyAndroid(“9a9547982d29dc6af942bc2a2b03ddefafb70c499e702319”, “reboot”, “text regel.”)
end
@Udo_Hartmann: thank you for your support
cu
schroedinger