Simplifies file writing (shades state) and adds auto on/off functionality to raising/lowering when coming back from off state.