Hello,
I wanted to connect a button on Raspberry using GPIO to get two functions.
- Press OFF Raspberry for X seconds
- Press for Y seconds REBOOT Raspberry
- Don’t use OH, I need it just when I have problems in OH
I ask for help for:
- What is the correct procedure for REBOOT, give the command
sudo reboot
or firstsudo systemctl stop openhab2.service
? - Someone at a script to perform these two functions?
Thank you