Implemented state method. Fixed locked method for demo interface. Changed LockDevice to extend Entity instead of ToggleEntity