Salamafet / ophom

Octoprint Philips Hue Outlet Manager
7 stars 1 forks source link

Fix shutdown on restart #39

Closed bitkeeper closed 3 years ago

bitkeeper commented 3 years ago

Based on the plugin events no difference can be made between a octoprint software restart, system reboot or system shutdown. All will get the "Shutdown" event. Only on system shutdown a power-off is acceptable.

While not clear how to detect the system shutdown, disable the power_off on shutdown event.