This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Reboot homey

Is there a way to reboot Homey by a flow ?

In the code a see a POST /reboot

.reboot=function(){Homey.confirm("Are you sure you want to reboot Homey?","warning",function(o,e){e&&Homey.api("POST","/reboot",null,function(o,e){return o?Homey.alert(o,"error"):void Homey.showRebootingOverlay()})})},o.log="idle",o.sendLog=function(){o.log="sending",Homey.api("POST","/journalctl",null,function(e,n){o.$apply(function(){e?(Homey.alert(e.message||e.toString(),"error"),o.log="error"):


Someone who know the answer ?

Comments

This discussion has been closed.