Beginner's guide to an openHABian reboot/shutdown switch

That’s because executeCommandLine has changed in OH3. So instead of:

executeCommandLine("sudo@@poweroff")

It’s now:

executeCommandLine("sudo", "poweroff")

Every phrase is now put into quotations, and the @@ for spaces no longer works.

4 Likes