How to restart or shutdown a remote Raspberry Pi over SSH within openHAB

You need to edit sudoers.d to allow the openHAB user to run commands.