Ahh, ok then. Thanks alot
Uptime openHAB aN:aN whats wrong when i get aN:aN instead of the time?
Ahh, ok then. Thanks alot
Uptime openHAB aN:aN whats wrong when i get aN:aN instead of the time?
Dear All
I applied the logic described above, tried different syntax/format, added notification to make the code was executed
but the Rasp is never rebooting, the line below does not move anything
executeCommandLine(’“sudo” “reboot”’, 5000)
Has anyone been successful with reboot from openhab rule ?
Thank you
Im not using the rule here, but would assume, that the rule can only reboot OpenHab, when the Openhab user is member of sudoers. Only than the Openhab user can trigger a reboot.
Have a look at this article, this might help you:
What does the logs tell you?
I do not think it is possible to reboot the machine that OH is running on from OH itself. Here is the sequence of events.
This seems to be the behavior when ever someone tries to do it. I do think this is a side effect from the fact that the reboot command’s parentage is something like:
systemd -> java -> shell -> reboot
Perhaps the reboot command can’t survive it’s grandparent process being killed the same way it can it’s parent process.
Thank you mdnx, I managed to get the reboot working by following your instruction
Regards
David