I need some help again.
I want to perfom a “sudo reboot” command directly from openhab. Either per rule or per button in my sidemap. I already found some tutorials to perfrom linux commands but I’m really not a Linux / Raspberry expert… so unfortunately it isn’t working. Because of limited knowledge I’m not really able to get it running
I think I also have to make some changes in the “configuration” but I dont know espscially what I have to do.
rule "Automatischer Neustart"
Time cron “0 0 2 ? * MON *”
executeCommandLine(’“sudo” “reboot”’, 5000)
In case you want to know the reason why I want to do this… please check my old thread All timed rules stopped working.... no idea why I have some issues with rules after longer runtimes and I tried everything which was suggested in that thread but problem is still up. So I try to fix it in that way… I know it’s not the best way to do so… but at least it is a fix.